mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
remove needless case-squash on login, castrating https://github.com/matrix-org/matrix-react-sdk/pull/1550
This commit is contained in:
parent
6942e94394
commit
ca531f83d2
1 changed files with 7 additions and 0 deletions
|
@ -204,6 +204,12 @@ export default class Login {
|
|||
}
|
||||
throw originalLoginError;
|
||||
}).catch((error) => {
|
||||
// We apparently squash case at login serverside these days:
|
||||
// https://github.com/matrix-org/synapse/blob/1189be43a2479f5adf034613e8d10e3f4f452eb9/synapse/handlers/auth.py#L475
|
||||
// so this wasn't needed after all. Keeping the code around in case the
|
||||
// the situation changes...
|
||||
|
||||
/*
|
||||
if (
|
||||
error.httpStatus === 403 &&
|
||||
loginParams.identifier.type === 'm.id.user' &&
|
||||
|
@ -211,6 +217,7 @@ export default class Login {
|
|||
) {
|
||||
return tryLowercaseUsername(originalLoginError);
|
||||
}
|
||||
*/
|
||||
throw originalLoginError;
|
||||
}).catch((error) => {
|
||||
console.log("Login failed", error);
|
||||
|
|
Loading…
Reference in a new issue