1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-11-04 18:48:52 +01:00

Merge branch 'insensitive-login' into 'next'

Case insensitive username login

Closes #248

See merge request famedly/conduit!323
This commit is contained in:
Timo Kösters 2022-04-01 08:20:45 +00:00
commit d89141100c

View file

@ -52,7 +52,7 @@ pub async fn login_route(
password,
}) => {
let username = if let IncomingUserIdentifier::MatrixId(matrix_id) = identifier {
matrix_id
matrix_id.to_lowercase()
} else {
return Err(Error::BadRequest(ErrorKind::Forbidden, "Bad login type."));
};