diff options
author | Erik Johnston <erik@matrix.org> | 2016-03-03 16:25:41 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-03-03 16:25:41 +0000 |
commit | 5c90451ea0ec6f05f55ed89851c94a0f9d4a4bc7 (patch) | |
tree | e8ffafb49258b8f37eb6f835db370ad93497f903 /synapse/handlers | |
parent | Merge pull request #571 from matrix-org/daniel/asids (diff) | |
parent | Stop using checkpw as it seems to have vanished from bcrypt. Use `bcrypt.hash... (diff) | |
download | synapse-5c90451ea0ec6f05f55ed89851c94a0f9d4a4bc7.tar.xz |
Merge pull request #619 from matrix-org/dbkr/dont_use_checkpw
Stop using checkpw as it seems to have vanished from bcrypt.
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py index 62e82a2570..7a4afe446d 100644 --- a/synapse/handlers/auth.py +++ b/synapse/handlers/auth.py @@ -477,4 +477,4 @@ class AuthHandler(BaseHandler): Returns: Whether self.hash(password) == stored_hash (bool). """ - return bcrypt.checkpw(password, stored_hash) + return bcrypt.hashpw(password, stored_hash) == stored_hash |