fix(personal-settings): allow non-email MFA without email service#5942
fix(personal-settings): allow non-email MFA without email service#5942syedmazharaliraza wants to merge 1 commit intoInfisical:mainfrom
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Greptile SummaryThis PR fixes a frontend guard in Confidence Score: 5/5Safe to merge — the change is a minimal, correct tightening of a frontend guard with no security implications. Single-line logic fix with clear intent and no P0/P1 findings. The backend has no corresponding email-configuration check, confirming the restriction was purely a frontend over-guard. All three MFA method paths (Email, TOTP, WebAuthn) behave correctly after the fix. No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "fix: allow non-email MFA without email s..." | Re-trigger Greptile |
Context
Previously, enabling MFA was blocked whenever email service was not configured, even if the user selected non-email MFA methods like
Mobile Authenticator (TOTP)orPasskey (WebAuthn).This change updates the guard so email configuration is only required when the selected MFA method is
Email.Before
Enable MFAfailed when SMTP/email service was not configured.TOTPandPasskey, which do not require email delivery.After
Enable MFAworks without email service when selected method is:Mobile Authenticator (TOTP)Passkey (WebAuthn)Email.Screen recordings
Screen.Recording.2026-04-04.at.9.36.26.PM.mov
Screen.Recording.2026-04-04.at.9.39.40.PM.mov
Steps to verify the change
Personal Settings->Authentication.Email.Mobile Authenticator (TOTP)and enable MFA.Passkey (WebAuthn)and enable MFA.Type
Checklist
type(scope): short description(scope is optional, e.g.,fix: prevent crash on syncorfix(api): handle null response).