This commit is contained in:
Matt Wright
2012-08-28 16:25:20 -04:00
parent f928db298d
commit 2042b8aa4c
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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)
+1
View File
@@ -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)