Skip to content

Commit

Permalink
adds relevant user to reset password form for validation purposes (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwag956 committed Apr 30, 2019
1 parent ae70e27 commit 4c199a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flask_security/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ def reset_password(token):
return redirect(url_for('forgot_password'))

form = _security.reset_password_form()
form.user = user

if form.validate_on_submit():
after_this_request(_commit)
Expand Down

0 comments on commit 4c199a1

Please sign in to comment.