summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-10-29 13:26:24 +0100
committerLukas Reschke <lukas@owncloud.com>2014-11-17 17:50:20 +0100
commitf530865b3d952e10c5c295f6dbe1138a667fa659 (patch)
tree1487548799f99dcc92eb3efa76bbe0344d977ce2
parentf6efbfcf0bb76e16347748666d0c967ad839c5b2 (diff)
downloadnextcloud-server-f530865b3d952e10c5c295f6dbe1138a667fa659.tar.gz
nextcloud-server-f530865b3d952e10c5c295f6dbe1138a667fa659.zip
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.
-rw-r--r--core/js/lostpassword.js3
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){