remove needless case-squash on login, castrating https://github.com/matrix-org/matrix-react-sdk/pull/1550
This commit is contained in:
@@ -204,6 +204,12 @@ export default class Login {
|
|||||||
}
|
}
|
||||||
throw originalLoginError;
|
throw originalLoginError;
|
||||||
}).catch((error) => {
|
}).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 (
|
if (
|
||||||
error.httpStatus === 403 &&
|
error.httpStatus === 403 &&
|
||||||
loginParams.identifier.type === 'm.id.user' &&
|
loginParams.identifier.type === 'm.id.user' &&
|
||||||
@@ -211,6 +217,7 @@ export default class Login {
|
|||||||
) {
|
) {
|
||||||
return tryLowercaseUsername(originalLoginError);
|
return tryLowercaseUsername(originalLoginError);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
throw originalLoginError;
|
throw originalLoginError;
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log("Login failed", error);
|
console.log("Login failed", error);
|
||||||
|
|||||||
Reference in New Issue
Block a user