summary refs log tree commit diff
path: root/synapse/rest/client/v1/register.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2017-11-13 11:56:22 +0000
committerRichard van der Hoff <richard@matrix.org>2017-11-13 11:56:22 +0000
commit8b33ac8f6c39b9debf89f1e96c72549cae29ae5f (patch)
tree7b48d39b17a82fa3751f5429b77bd5f7803aa40f /synapse/rest/client/v1/register.py
parentFix 500 on invalid utf-8 in request (diff)
parentRevert "move _state_group_cache to statestore" (diff)
downloadsynapse-8b33ac8f6c39b9debf89f1e96c72549cae29ae5f.tar.xz
Merge branch 'develop' into rav/invalid_request_utf8
Diffstat (limited to 'synapse/rest/client/v1/register.py')
-rw-r--r--synapse/rest/client/v1/register.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/register.py b/synapse/rest/client/v1/register.py
index ecf7e311a9..32ed1d3ab2 100644
--- a/synapse/rest/client/v1/register.py
+++ b/synapse/rest/client/v1/register.py
@@ -359,7 +359,7 @@ class RegisterRestServlet(ClientV1RestServlet):
         if compare_digest(want_mac, got_mac):
             handler = self.handlers.registration_handler
             user_id, token = yield handler.register(
-                localpart=user,
+                localpart=user.lower(),
                 password=password,
                 admin=bool(admin),
             )