mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-16 13:53:52 +01:00
Merge pull request #619 from matrix-org/dbkr/dont_use_checkpw
Stop using checkpw as it seems to have vanished from bcrypt.
This commit is contained in:
commit
5c90451ea0
1 changed files with 1 additions and 1 deletions
|
@ -477,4 +477,4 @@ class AuthHandler(BaseHandler):
|
||||||
Returns:
|
Returns:
|
||||||
Whether self.hash(password) == stored_hash (bool).
|
Whether self.hash(password) == stored_hash (bool).
|
||||||
"""
|
"""
|
||||||
return bcrypt.checkpw(password, stored_hash)
|
return bcrypt.hashpw(password, stored_hash) == stored_hash
|
||||||
|
|
Loading…
Reference in a new issue