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