fix(oidc): apply clippy recos on PR 652

This commit is contained in:
Edouard Vanbelle
2026-08-01 12:27:20 +02:00
parent 2de5abc6ca
commit 7534427dc2
@@ -2774,8 +2774,9 @@ impl AuthApplicationService {
let provider_name = oidc.provider_name().to_string(); let provider_name = oidc.provider_name().to_string();
// Check email_verified - only if email is present in claims, and email verification is required. // Check email_verified - only if email is present in claims, and email verification is required.
if self.require_verified_email() { if self.require_verified_email()
if let Some(email) = &claims.email { && let Some(email) = &claims.email
{
let verified = claims.email_verified.unwrap_or(false); let verified = claims.email_verified.unwrap_or(false);
if !verified { if !verified {
tracing::warn!( tracing::warn!(
@@ -2790,7 +2791,6 @@ impl AuthApplicationService {
)); ));
} }
} }
}
// 4. Determine username and email // 4. Determine username and email
let oidc_username = claims let oidc_username = claims