2fa email fallback need a verified email (#7770)

Co-authored-by: Timshel <timshel@users.noreply.github.com>
Co-authored-by: Mathijs van Veluw <black.dex@gmail.com>
This commit is contained in:
authored and GitHub committed 2026-10-03 14:01:26 +02:00
1 parent 3714b504f6
commit 1c89e1772b
3 files changed
+12 -7

No files matched your search

+1 -1
View File
@@ -253,7 +253,7 @@ impl LoginJwtClaims {
premium: true,
name: user.name.clone(),
email: user.email.clone(),
email_verified: !CONFIG.mail_enabled() || user.verified_at.is_some(),
email_verified: user.verified(),
// ---
// Disabled these keys to be added to the JWT since they could cause the JWT to get too large