1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py
index 3d1b6531c2..56d125f753 100644
--- a/synapse/handlers/register.py
+++ b/synapse/handlers/register.py
@@ -56,8 +56,8 @@ class RegistrationHandler(BaseHandler):
yield self.check_user_id_is_valid(user_id)
- u = yield self.store.get_user_by_id(user_id)
- if u:
+ users = yield self.store.get_users_by_id_case_insensitive(user_id)
+ if users:
raise SynapseError(
400,
"User ID already taken.",
|