summary refs log tree commit diff
path: root/synapse/handlers/register.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-01-10 18:01:28 +0000
committerErik Johnston <erik@matrix.org>2018-01-10 18:01:28 +0000
commitf8e1ab5fee708bea93c54b39dc802a08c7ed7e21 (patch)
treed785e1e338713efa8f03091bee9eeee07a7a21ba /synapse/handlers/register.py
parentMerge pull request #2721 from matrix-org/rav/get_user_by_access_token_comments (diff)
downloadsynapse-f8e1ab5fee708bea93c54b39dc802a08c7ed7e21.tar.xz
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 f6e7e58563..132e2052c0 100644
--- a/synapse/handlers/register.py
+++ b/synapse/handlers/register.py
@@ -130,7 +130,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)