summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-03-03 16:25:41 +0000
committerErik Johnston <erik@matrix.org>2016-03-03 16:25:41 +0000
commit5c90451ea0ec6f05f55ed89851c94a0f9d4a4bc7 (patch)
treee8ffafb49258b8f37eb6f835db370ad93497f903 /synapse
parentMerge pull request #571 from matrix-org/daniel/asids (diff)
parentStop using checkpw as it seems to have vanished from bcrypt. Use `bcrypt.hash... (diff)
downloadsynapse-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')
-rw-r--r--synapse/handlers/auth.py2
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