summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-09-29 16:57:02 +0200
committerByron Jones <glob@mozilla.com>2015-09-29 16:57:02 +0200
commit05fed61671067cb6a750d41909ccb5692ba43808 (patch)
tree3ed5654e9383df29b48c009f16aed40d26782b1d /js
parent87c32cbdf12784dacbbcd9694753ac0e5e02afea (diff)
downloadbugzilla-05fed61671067cb6a750d41909ccb5692ba43808.tar.gz
bugzilla-05fed61671067cb6a750d41909ccb5692ba43808.tar.xz
Bug 1199090 - add printable recovery 2fa codes
Diffstat (limited to 'js')
-rw-r--r--js/account.js15
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) {