You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-21 23:00:50 +03:00
Show consent page on prompt=consent
This commit is contained in:
@@ -381,8 +381,17 @@ pub(crate) async fn get(
|
|||||||
)
|
)
|
||||||
.await?)
|
.await?)
|
||||||
}
|
}
|
||||||
(Some(_), Some(Prompt::Login | Prompt::Consent | Prompt::SelectAccount)) => {
|
(Some(_), Some(Prompt::Consent)) => {
|
||||||
// We're already logged in but login|consent|select_account was asked, reauth
|
// We're already logged in but consent was asked
|
||||||
|
txn.commit().await?;
|
||||||
|
|
||||||
|
let next: ConsentRequest = next.into();
|
||||||
|
let next = next.build_uri()?;
|
||||||
|
|
||||||
|
Ok(Redirect::to(&next.to_string()).into_response())
|
||||||
|
}
|
||||||
|
(Some(_), Some(Prompt::Login | Prompt::SelectAccount)) => {
|
||||||
|
// We're already logged in but login|select_account was asked, reauth
|
||||||
// TODO: better pages here
|
// TODO: better pages here
|
||||||
txn.commit().await?;
|
txn.commit().await?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user