mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 01:30:20 +00:00
Need to yield the username check, otherwise very very weird things happen.
This commit is contained in:
parent
4cd5fb13a3
commit
83b554437e
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue