0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-04 05:38:57 +01:00

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

This commit is contained in:
David Baker 2015-04-17 12:57:25 +01:00
parent 4cd5fb13a3
commit 83b554437e

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()