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/register.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/register.py')
-rw-r--r-- | synapse/handlers/register.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py index 4bc6ef51fe..5b808beac1 100644 --- a/synapse/handlers/register.py +++ b/synapse/handlers/register.py @@ -131,7 +131,7 @@ class RegistrationHandler(BaseHandler): yield run_on_reactor() password_hash = None if password: - password_hash = self.auth_handler().hash(password) + password_hash = yield self.auth_handler().hash(password) if localpart: yield self.check_username(localpart, guest_access_token=guest_access_token) |