mirror of
https://github.com/wassname/flask-security.git
synced 2026-07-13 01:00:42 +08:00
Fixes #34
This commit is contained in:
@@ -227,6 +227,7 @@ def reset_password(token):
|
||||
form = ResetPasswordForm()
|
||||
|
||||
if form.validate_on_submit():
|
||||
after_this_request(_commit)
|
||||
update_password(user, form.password.data)
|
||||
do_flash(*get_message('PASSWORD_RESET'))
|
||||
login_user(user, True)
|
||||
|
||||
@@ -424,6 +424,7 @@ class RecoverableTests(SecurityTest):
|
||||
'password_confirm': 'newpassword'
|
||||
}, follow_redirects=True)
|
||||
|
||||
r = self.logout()
|
||||
r = self.authenticate('joe@lp.com', 'newpassword')
|
||||
self.assertIn('Hello joe@lp.com', r.data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user