diff options
author | Erik Johnston <erikj@jki.re> | 2018-01-10 18:11:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-10 18:11:41 +0000 |
commit | 825a07a974eb1ffe689ede62cbeb5624ccb046ee (patch) | |
tree | ff54b31bc16967d3b1217d9801a2b48fe15ad4af /synapse/handlers/set_password.py | |
parent | Merge pull request #2772 from matrix-org/t3chguy/patch-1 (diff) | |
parent | Do bcrypt hashing in a background thread (diff) | |
download | synapse-825a07a974eb1ffe689ede62cbeb5624ccb046ee.tar.xz |
Merge pull request #2773 from matrix-org/erikj/hash_bg
Do bcrypt hashing in a background thread
Diffstat (limited to 'synapse/handlers/set_password.py')
-rw-r--r-- | synapse/handlers/set_password.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/set_password.py b/synapse/handlers/set_password.py index 44414e1dc1..e057ae54c9 100644 --- a/synapse/handlers/set_password.py +++ b/synapse/handlers/set_password.py @@ -31,7 +31,7 @@ class SetPasswordHandler(BaseHandler): @defer.inlineCallbacks def set_password(self, user_id, newpassword, requester=None): - password_hash = self._auth_handler.hash(newpassword) + password_hash = yield self._auth_handler.hash(newpassword) except_device_id = requester.device_id if requester else None except_access_token_id = requester.access_token_id if requester else None |