summary refs log tree commit diff
path: root/synapse/rest/client/v1
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2017-11-10 12:39:05 +0000
committerRichard van der Hoff <richard@matrix.org>2017-11-10 12:39:05 +0000
commite0ebd1e4bd770231b1e7c31c870ab22b992213ba (patch)
treefbda6c7ac23ac32486bcbca46ab1d518c15283fb /synapse/rest/client/v1
parentDowncase userid on registration (diff)
downloadsynapse-e0ebd1e4bd770231b1e7c31c870ab22b992213ba.tar.xz
Downcase userids for shared-secret registration
Diffstat (limited to 'synapse/rest/client/v1')
-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), )