We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5e0f16 commit 691c055Copy full SHA for 691c055
crates/handlers/src/upstream_oauth2/authorize.rs
@@ -94,11 +94,9 @@ pub(crate) async fn get(
94
95
// Forward the raw login hint upstream for the provider to handle however it
96
// sees fit
97
- if let Some(post_auth_action) = &query.post_auth_action {
98
- if let PostAuthAction::ContinueAuthorizationGrant { id } = post_auth_action {
99
- if let Some(grant) = repo.oauth2_authorization_grant().lookup(*id).await? {
100
- data.login_hint = grant.login_hint;
101
- }
+ if let Some(PostAuthAction::ContinueAuthorizationGrant { id }) = &query.post_auth_action {
+ if let Some(grant) = repo.oauth2_authorization_grant().lookup(*id).await? {
+ data.login_hint = grant.login_hint;
102
}
103
104
0 commit comments