Skip to content

Commit 931b606

Browse files
committed
correct claim import condition
1 parent 1b474bf commit 931b606

File tree

1 file changed

+1
-1
lines changed
  • crates/handlers/src/upstream_oauth2

1 file changed

+1
-1
lines changed

crates/handlers/src/upstream_oauth2/link.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ pub(crate) async fn post(
678678
let context = context.build();
679679

680680
if !provider.claims_imports.localpart.is_forced()
681-
|| !provider.claims_imports.localpart.is_required()
681+
&& !provider.claims_imports.localpart.is_required()
682682
{
683683
//Claims import for `localpart` should be `require` or `force` at this stage
684684
return Err(RouteError::InvalidFormAction);

0 commit comments

Comments
 (0)