From 4eb8fe3e6ab23ef6493f0b35f44a12bf973a22e2 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 27 Oct 2017 17:49:44 +0100 Subject: [PATCH] Lowercase all usernames As synapse doesn't accept usernames with capitals in them now Fixes https://github.com/vector-im/riot-web/issues/5445 --- src/components/structures/login/Registration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/login/Registration.js b/src/components/structures/login/Registration.js index db488ea237..2ee11f8386 100644 --- a/src/components/structures/login/Registration.js +++ b/src/components/structures/login/Registration.js @@ -302,7 +302,7 @@ module.exports = React.createClass({ } : {}; return this._matrixClient.register( - this.state.formVals.username, + this.state.formVals.username.toLowerCase(), this.state.formVals.password, undefined, // session id: included in the auth dict already auth,