diff options
author | Richard van der Hoff <richard@matrix.org> | 2017-11-10 12:39:05 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-11-10 12:39:05 +0000 |
commit | e0ebd1e4bd770231b1e7c31c870ab22b992213ba (patch) | |
tree | fbda6c7ac23ac32486bcbca46ab1d518c15283fb /synapse/rest/client/v1 | |
parent | Downcase userid on registration (diff) | |
download | synapse-e0ebd1e4bd770231b1e7c31c870ab22b992213ba.tar.xz |
Downcase userids for shared-secret registration
Diffstat (limited to 'synapse/rest/client/v1')
-rw-r--r-- | synapse/rest/client/v1/register.py | 2 |
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), ) |