diff --git a/matrix_synapse_saml_mozilla/res/script.js b/matrix_synapse_saml_mozilla/res/script.js
index 1fa4e39..ab97438 100644
--- a/matrix_synapse_saml_mozilla/res/script.js
+++ b/matrix_synapse_saml_mozilla/res/script.js
@@ -36,13 +36,13 @@ let onResponse = function(response, success) {
};
// We allow upper case characters here, but then lowercase before sending to the server
-let allowedUsernameCharacters = RegExp("[^a-zA-Z0-9\\.\\_\\=\\-\\/]");
+let allowedUsernameCharacters = RegExp("[^a-z0-9\\.\\_\\=\\-\\/]");
let usernameIsValid = function(username) {
return !allowedUsernameCharacters.test(username);
}
let allowedCharactersString = "" +
-"a-z
, " +
-"0-9
, " +
+"lowercase letters, " +
+"digits, " +
".
, " +
"_
, " +
"-
, " +