From f530865b3d952e10c5c295f6dbe1138a667fa659 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Wed, 29 Oct 2014 13:26:24 +0100 Subject: 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. --- core/js/lostpassword.js | 3 +++ 1 file changed, 3 insertions(+) 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){ -- cgit v1.2.3