mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-07-29 21:59:55 +00:00
add option to set user-password for service when updating its hash
This commit is contained in:
@ -26,7 +26,7 @@ def test_check_credentials_hash_password(user: User) -> None:
|
||||
must generate and validate user password
|
||||
"""
|
||||
current_password = user.password
|
||||
user.password = user.hash_password(current_password, "salt")
|
||||
user.password = user.hash_password("salt")
|
||||
assert user.check_credentials(current_password, "salt")
|
||||
assert not user.check_credentials(current_password, "salt1")
|
||||
assert not user.check_credentials(user.password, "salt")
|
||||
|
Reference in New Issue
Block a user