diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-12-19 14:00:47 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-12-19 14:00:47 +0100 |
commit | cdaf99cf58d65d822175fa681aecda3c1890d3dc (patch) | |
tree | 964009a9d23f2486ec4584fbc50e2f133d929c2d /core/js | |
parent | e550a3ddd8a391a25581302dc87d4877f6c53f0d (diff) | |
download | nextcloud-server-cdaf99cf58d65d822175fa681aecda3c1890d3dc.tar.gz nextcloud-server-cdaf99cf58d65d822175fa681aecda3c1890d3dc.zip |
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 <roeland@famdouma.nl>
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/lostpassword.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js index 446d70d991e..b44962f552e 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(); }, |