Browse Source
Fix remove the unnecessary path segments
Signed-off-by: Kowalski Dragon (kowalski7cc) <kowalski7cc@users.noreply.github.com>
pull/7749/head
Kowalski Dragon (kowalski7cc)
2 weeks ago
No known key found for this signature in database
GPG Key ID: C4E819BD2BC6233E
1 changed files with
1 additions and
1 deletions
-
src/api/identity.rs
|
|
@ -357,7 +357,7 @@ async fn sso_login( |
|
|
"true" => true, |
|
|
"true" => true, |
|
|
"auto" => { |
|
|
"auto" => { |
|
|
let amr_values = CONFIG.sso_2fa_amr_vec(); |
|
|
let amr_values = CONFIG.sso_2fa_amr_vec(); |
|
|
user_infos.acr.as_deref() == Some(crate::sso::SSO_2FA_ACR) |
|
|
user_infos.acr.as_deref() == Some(sso::SSO_2FA_ACR) |
|
|
|| user_infos.amr.as_ref().is_some_and(|amr| amr.iter().any(|method| amr_values.contains(method))) |
|
|
|| user_infos.amr.as_ref().is_some_and(|amr| amr.iter().any(|method| amr_values.contains(method))) |
|
|
} |
|
|
} |
|
|
_ => false, |
|
|
_ => false, |
|
|
|