summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-09-19 17:46:25 +0200
committerGitHub <noreply@github.com>2017-09-19 17:46:25 +0200
commit5abefb689bc17dc26e747164f9251926faade358 (patch)
tree9675fb0d20e51c5a908eb99cef8af62407b7d1e8 /js
parent251dcb33528c771dcb7e6793b6611aa2436f4bbe (diff)
downloadbugzilla-5abefb689bc17dc26e747164f9251926faade358.tar.gz
bugzilla-5abefb689bc17dc26e747164f9251926faade358.tar.xz
Bug 1400419 - Direct GitHub-auth'd users that are required to use 2FA to issue a password reset
Diffstat (limited to 'js')
-rw-r--r--js/account.js13
1 files changed, 12 insertions, 1 deletions
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