Need to yield the username check, otherwise very very weird things happen.
This commit is contained in:
parent
4cd5fb13a3
commit
83b554437e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue