From 9184acb2e330dbf9a9f446eea0e56e7e01367fd8 Mon Sep 17 00:00:00 2001 From: Carlos Miceli Date: Thu, 5 Feb 2026 14:26:29 -0300 Subject: [PATCH] Revert "[NO QA] Revert "fix: Signing with magic link doesn't lead to 2FA page for account with 2FA enabled"" --- src/pages/signin/SignInPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/signin/SignInPage.tsx b/src/pages/signin/SignInPage.tsx index 9575d48d91d0..cb53c1c63f23 100644 --- a/src/pages/signin/SignInPage.tsx +++ b/src/pages/signin/SignInPage.tsx @@ -102,7 +102,7 @@ function getRenderOptions({ // True, if the user has SAML required, and we haven't yet initiated SAML for their account const shouldInitiateSAMLLogin = hasAccount && hasLogin && isSAMLRequired && !hasInitiatedSAMLLogin && !!account.isLoading; - const shouldShowChooseSSOOrMagicCode = hasAccount && hasLogin && isSAMLEnabled && !isSAMLRequired && !isUsingMagicCode; + const shouldShowChooseSSOOrMagicCode = hasAccount && hasLogin && isSAMLEnabled && !isSAMLRequired && !isUsingMagicCode && !hasValidateCode; // SAML required users may reload the login page after having already entered their login details, in which // case we want to clear their sign in data so they don't end up in an infinite loop redirecting back to their