mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-09-17 14:35:33 +00:00
co-authored by
Quentin Gliech
parent
3644d4c0bf
commit
cdc75ffbf3
@@ -118,8 +118,10 @@ impl ConfigurationSection for UpstreamOAuth2Config {
|
||||
}
|
||||
}
|
||||
|
||||
if !provider.claims_imports.localpart.on_conflict.is_default()
|
||||
&& !matches!(
|
||||
if matches!(
|
||||
provider.claims_imports.localpart.on_conflict,
|
||||
OnConflict::Add
|
||||
) && !matches!(
|
||||
provider.claims_imports.localpart.action,
|
||||
ImportAction::Force | ImportAction::Require
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user