Merge branch 'insensitive-login' into 'next'
Case insensitive username login Closes #248 See merge request famedly/conduit!323
This commit is contained in:
@@ -52,7 +52,7 @@ pub async fn login_route(
|
|||||||
password,
|
password,
|
||||||
}) => {
|
}) => {
|
||||||
let username = if let IncomingUserIdentifier::MatrixId(matrix_id) = identifier {
|
let username = if let IncomingUserIdentifier::MatrixId(matrix_id) = identifier {
|
||||||
matrix_id
|
matrix_id.to_lowercase()
|
||||||
} else {
|
} else {
|
||||||
return Err(Error::BadRequest(ErrorKind::Forbidden, "Bad login type."));
|
return Err(Error::BadRequest(ErrorKind::Forbidden, "Bad login type."));
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user