diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-10-29 15:26:24 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-11-17 19:50:20 +0300 |
commit | f530865b3d952e10c5c295f6dbe1138a667fa659 (patch) | |
tree | 1487548799f99dcc92eb3efa76bbe0344d977ce2 /core | |
parent | f6efbfcf0bb76e16347748666d0c967ad839c5b2 (diff) |
Hide submit button after password change
Creating a new key pair can take 1-2 seconds. So it could happen that the user click the "Reset password" button again which can lead to many nasty things, e.g. we could create two new key pairs in parallel.
Diffstat (limited to 'core')
-rw-r--r-- | core/js/lostpassword.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js index aa1a864ffed..7145e219654 100644 --- a/core/js/lostpassword.js +++ b/core/js/lostpassword.js @@ -82,6 +82,9 @@ OC.Lostpassword = { OC.Lostpassword.resetDone ); } + if($('#encrypted-continue').attr('checked')) { + $('#reset-password #submit').hide(); + } }, resetDone : function(result){ |