summary refs log tree commit diff
path: root/synapse/handlers/register.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2018-01-10 18:11:41 +0000
committerGitHub <noreply@github.com>2018-01-10 18:11:41 +0000
commit825a07a974eb1ffe689ede62cbeb5624ccb046ee (patch)
treeff54b31bc16967d3b1217d9801a2b48fe15ad4af /synapse/handlers/register.py
parentMerge pull request #2772 from matrix-org/t3chguy/patch-1 (diff)
parentDo bcrypt hashing in a background thread (diff)
downloadsynapse-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.py2
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)