Skip to content

Commit

Permalink
Use javascript to send the actual password reset
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rullzer committed Dec 19, 2017
1 parent e550a3d commit cdaf99c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/js/lostpassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
},

Expand Down

0 comments on commit cdaf99c

Please sign in to comment.