Need to yield the username check, otherwise very very weird things happen.

This commit is contained in:
David Baker committed 2015-04-17 12:57:25 +01:00
1 parent 4cd5fb13a3
commit 83b554437e
1 file changed
+1 -1
+1 -1
View File
@@ -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()