Missed name shadowing issue

This commit is contained in:
ReAnzu 2018-03-07 19:55:38 -06:00
parent 9c13c6ae56
commit 5a585cb01d

View file

@ -244,8 +244,7 @@ def update_user_password(user: model.User, password: str) -> None:
'Password must satisfy regex %r.' % password_regex)
user.password_salt = auth.create_password()
password_hash, revision = auth.get_password_hash(
user.password_salt,
password)
user.password_salt, password)
user.password_hash = password_hash
user.password_revision = revision
@ -312,7 +311,8 @@ def reset_user_password(user: model.User) -> str:
assert user
password = auth.create_password()
user.password_salt = auth.create_password()
hash, revision = auth.get_password_hash(user.password_salt, password)
user.password_hash = hash
password_hash, revision = auth.get_password_hash(
user.password_salt, password)
user.password_hash = password_hash
user.password_revision = revision
return password