summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-04-17 12:57:25 +0100
committerDavid Baker <dave@matrix.org>2015-04-17 12:57:25 +0100
commit83b554437ec9810dd09de992c728c2a2f01aa0e1 (patch)
treebf2ee47d76cc526251ba77fe7bbec24699dbf7fb
parentOops, left debugging in. (diff)
downloadsynapse-83b554437ec9810dd09de992c728c2a2f01aa0e1.tar.xz
Need to yield the username check, otherwise very very weird things happen.
-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 25b1db62ea..d4483c3a1d 100644
--- a/synapse/handlers/register.py
+++ b/synapse/handlers/register.py
@@ -88,7 +88,7 @@ class RegistrationHandler(BaseHandler):
             password_hash = bcrypt.hashpw(password, bcrypt.gensalt())
 
         if localpart:
-            self.check_username(localpart)
+            yield self.check_username(localpart)
 
             user = UserID(localpart, self.hs.hostname)
             user_id = user.to_string()