diff options
author | David Baker <dave@matrix.org> | 2015-04-17 12:57:25 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-04-17 12:57:25 +0100 |
commit | 83b554437ec9810dd09de992c728c2a2f01aa0e1 (patch) | |
tree | bf2ee47d76cc526251ba77fe7bbec24699dbf7fb | |
parent | Oops, left debugging in. (diff) | |
download | synapse-83b554437ec9810dd09de992c728c2a2f01aa0e1.tar.xz |
Need to yield the username check, otherwise very very weird things happen.
-rw-r--r-- | synapse/handlers/register.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py index 25b1db62ea..d4483c3a1d 100644 --- a/synapse/handlers/register.py +++ b/synapse/handlers/register.py @@ -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() |