summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-03-02 18:06:45 +0000
committerDavid Baker <dave@matrix.org>2016-03-02 18:06:45 +0000
commitff8b87118dcfb153d972e29c2b77b195244d5ddc (patch)
treed3a05addaf2837fedb99376d1fe64568869e7bf0 /synapse/handlers
parentMerge pull request #616 from matrix-org/matthew/800x600 (diff)
downloadsynapse-ff8b87118dcfb153d972e29c2b77b195244d5ddc.tar.xz
Stop using checkpw as it seems to have vanished from bcrypt. Use `bcrypt.hashpw(password, hashed) == hashed` as per the bcrypt README.
Diffstat (limited to 'synapse/handlers')
-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