From cdaf99cf58d65d822175fa681aecda3c1890d3dc Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 19 Dec 2017 14:00:47 +0100 Subject: [PATCH] Use javascript to send the actual password reset Fixes #7574 During some refactoring the event linked to password reset got removed. This ment that we just submitted a normal POST but without the CSRF token. And none of the js magic to redirect afterwards. Signed-off-by: Roeland Jago Douma --- core/js/lostpassword.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js index 446d70d991ef8..b44962f552e93 100644 --- a/core/js/lostpassword.js +++ b/core/js/lostpassword.js @@ -16,6 +16,7 @@ OC.Lostpassword = { $('#lost-password').click(OC.Lostpassword.resetLink); $('#lost-password-back').click(OC.Lostpassword.backToLogin); $('form[name=login]').submit(OC.Lostpassword.onSendLink); + $('#reset-password #submit').click(OC.Lostpassword.resetPassword); OC.Lostpassword.resetButtons(); },