mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 18:53:53 +01: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