Downcase userids for shared-secret registration

This commit is contained in:
Richard van der Hoff 2017-11-10 12:39:05 +00:00
parent 9b599bc18d
commit e0ebd1e4bd
2 changed files with 21 additions and 3 deletions

View file

@ -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),
)