diff options
author | David Baker <dave@matrix.org> | 2016-03-02 18:06:45 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-03-02 18:06:45 +0000 |
commit | ff8b87118dcfb153d972e29c2b77b195244d5ddc (patch) | |
tree | d3a05addaf2837fedb99376d1fe64568869e7bf0 | |
parent | Merge pull request #616 from matrix-org/matthew/800x600 (diff) | |
download | synapse-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.
-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 |