summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
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) {