diff options
author | Byron Jones <glob@mozilla.com> | 2015-09-29 16:57:02 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-09-29 16:57:02 +0200 |
commit | 05fed61671067cb6a750d41909ccb5692ba43808 (patch) | |
tree | 3ed5654e9383df29b48c009f16aed40d26782b1d /js | |
parent | 87c32cbdf12784dacbbcd9694753ac0e5e02afea (diff) | |
download | bugzilla-05fed61671067cb6a750d41909ccb5692ba43808.tar.gz bugzilla-05fed61671067cb6a750d41909ccb5692ba43808.tar.xz |
Bug 1199090 - add printable recovery 2fa codes
Diffstat (limited to 'js')
-rw-r--r-- | js/account.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/js/account.js b/js/account.js index 12a6c7a10..84a7da5bf 100644 --- a/js/account.js +++ b/js/account.js @@ -93,15 +93,26 @@ $(function() { $('#mfa-disable') .click(function(event) { event.preventDefault(); - $('#mfa-disable-container').show(); + $('.mfa-api-blurb, #mfa-buttons').hide(); + $('#mfa-disable-container, #mfa-auth-container').show(); $('#mfa-confirm').show(); - $('.mfa-api-blurb').hide(); $('#mfa-password').focus(); $('#update').attr('disabled', false); $('.mfa-protected').hide(); $(this).hide(); }); + $('#mfa-recovery') + .click(function(event) { + event.preventDefault(); + $('.mfa-api-blurb, #mfa-buttons').hide(); + $('#mfa-recovery-container, #mfa-auth-container').show(); + $('#mfa-password').focus(); + $('#update').attr('disabled', false).val('Generate Printable Recovery Codes'); + $('#mfa-action').val('recovery'); + $(this).hide(); + }); + var totp_popup; $('#mfa-totp-apps, #mfa-totp-text') .click(function(event) { |