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>
pull/7576/head
Roeland Jago Douma 8 years ago
parent e550a3ddd8
commit cdaf99cf58
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 1
      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();
},

Loading…
Cancel
Save