Add additional steps to the test_change_hash_type and make change to verify_and_update_password to make the test pass. Fixes #328.

This commit is contained in:
Matt Wright
2014-10-13 13:25:01 -04:00
parent 76ad77a233
commit fe7e4c4afc
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ def verify_and_update_password(password, user):
password = get_hmac(password)
verified, new_password = _pwd_context.verify_and_update(password, user.password)
if verified and new_password:
user.password = new_password
user.password = encrypt_password(password)
_datastore.put(user)
return verified