mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 04:06:54 +00:00
Merge branch 'insensitive-login' into 'next'
Case insensitive username login Closes #248 See merge request famedly/conduit!323
This commit is contained in:
commit
d89141100c
1 file changed
+1
-1
@@ -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."));
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user