From 5abefb689bc17dc26e747164f9251926faade358 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Tue, 19 Sep 2017 11:46:25 -0400 Subject: Bug 1400419 - Direct GitHub-auth'd users that are required to use 2FA to issue a password reset --- js/account.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'js/account.js') diff --git a/js/account.js b/js/account.js index c5557aa41..8642cadbd 100644 --- a/js/account.js +++ b/js/account.js @@ -287,7 +287,18 @@ $(function() { }); if ($('#mfa-action').length) { - $('#update').attr('disabled', true); + if ($("#mfa-action").data('nopassword')) { + $('#update') + .attr('disabled', false) + .val("Reset Password") + .click(function(event) { + event.preventDefault(); + $('#forgot-form').submit(); + }); + } + else { + $("#update").attr('disabled', true); + } } // api-key -- cgit v1.2.3-24-g4f1b