Skip to content
Snippets Groups Projects
Commit 5c90451e authored by Erik Johnston's avatar Erik Johnston
Browse files

Merge pull request #619 from matrix-org/dbkr/dont_use_checkpw

Stop using checkpw as it seems to have vanished from bcrypt.
parents 95481e7b ff8b8711
Branches
Tags
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment