mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-12-28 05:14:20 +01:00
fix: make requested changes
This commit is contained in:
parent
4d589d9788
commit
664d6baace
1 changed files with 1 additions and 3 deletions
|
@ -105,12 +105,10 @@ pub async fn login_route(body: Ruma<login::v3::Request>) -> Result<login::v3::Re
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
login::v3::LoginInfo::ApplicationService(login::v3::ApplicationService { identifier }) => {
|
login::v3::LoginInfo::ApplicationService(login::v3::ApplicationService { identifier }) => {
|
||||||
info!("hi");
|
|
||||||
if !body.from_appservice {
|
if !body.from_appservice {
|
||||||
return Err(Error::BadRequest(
|
return Err(Error::BadRequest(
|
||||||
ErrorKind::Forbidden,
|
ErrorKind::Forbidden,
|
||||||
// TODO: is this the correct response
|
"Forbidden login type."
|
||||||
"Wrong username or password.",
|
|
||||||
));
|
));
|
||||||
};
|
};
|
||||||
let username = if let UserIdentifier::UserIdOrLocalpart(user_id) = identifier {
|
let username = if let UserIdentifier::UserIdOrLocalpart(user_id) = identifier {
|
||||||
|
|
Loading…
Reference in a new issue