Skip to content

[NO QA] Revert "fix: Signing with magic link doesn't lead to 2FA page for account with 2FA enabled"#81437

Merged
Julesssss merged 1 commit into
mainfrom
revert-78261-fix/77410
Feb 4, 2026
Merged

[NO QA] Revert "fix: Signing with magic link doesn't lead to 2FA page for account with 2FA enabled"#81437
Julesssss merged 1 commit into
mainfrom
revert-78261-fix/77410

Conversation

@carlosmiceli

Copy link
Copy Markdown
Contributor

Reverts #78261

@carlosmiceli carlosmiceli self-assigned this Feb 4, 2026
@carlosmiceli carlosmiceli requested review from a team as code owners February 4, 2026 18:43
@melvin-bot melvin-bot Bot requested review from Valforte and trjExpensify and removed request for a team February 4, 2026 18:43
@melvin-bot

melvin-bot Bot commented Feb 4, 2026

Copy link
Copy Markdown

@Valforte Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@carlosmiceli

Copy link
Copy Markdown
Contributor Author

@Valforte not sure we need this yet but getting it ready to speed things up.

@carlosmiceli carlosmiceli changed the title Revert "fix: Signing with magic link doesn't lead to 2FA page for account with 2FA enabled" [HOLD] Revert "fix: Signing with magic link doesn't lead to 2FA page for account with 2FA enabled" Feb 4, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6ca4bd04d4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

// 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 && !hasValidateCode;
const shouldShowChooseSSOOrMagicCode = hasAccount && hasLogin && isSAMLEnabled && !isSAMLRequired && !isUsingMagicCode;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Gate SSO/magic choice when a validate code is present

For SAML-enabled (but not required) accounts signing in via a magic link or deep link, credentials.validateCode is already set. With the reverted condition, shouldShowChooseSSOOrMagicCode becomes true even when a validate code exists, which suppresses shouldShowValidateCodeForm later in the same function. That blocks the 2FA/magic-code prompt and recreates the “magic link doesn’t lead to 2FA” regression that this revert brings back. Reinstating the !hasValidateCode guard prevents the choice screen from overriding the validate-code flow for these users.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am reverting to previous logic. It's better than a deploy blocker.

@Julesssss

Copy link
Copy Markdown
Contributor

Ignoring checklists, this is a revert

@Julesssss Julesssss merged commit d192319 into main Feb 4, 2026
32 of 37 checks passed
@Julesssss Julesssss deleted the revert-78261-fix/77410 branch February 4, 2026 21:27
@melvin-bot melvin-bot Bot added the Emergency label Feb 4, 2026
@melvin-bot

melvin-bot Bot commented Feb 4, 2026

Copy link
Copy Markdown

@Julesssss looks like this was merged without a test passing. Please add a note explaining why this was done and remove the Emergency label if this is not an emergency.

@github-actions

github-actions Bot commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

🚧 @Julesssss has triggered a test Expensify/App build. You can view the workflow run here.

@Julesssss Julesssss changed the title [HOLD] Revert "fix: Signing with magic link doesn't lead to 2FA page for account with 2FA enabled" [NO QA] Revert "fix: Signing with magic link doesn't lead to 2FA page for account with 2FA enabled" Feb 4, 2026
@Julesssss

Copy link
Copy Markdown
Contributor

Not emergency, see above

OSBotify pushed a commit that referenced this pull request Feb 4, 2026
[HOLD] Revert "fix: Signing with magic link doesn't lead to 2FA page for account with 2FA enabled"

(cherry picked from commit d192319)

(cherry-picked to staging by Julesssss)
@OSBotify OSBotify added the CP Staging marks PRs that have been CP'd to staging label Feb 4, 2026
@github-actions

github-actions Bot commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

@OSBotify

OSBotify commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.3.11-51 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify

OSBotify commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/Julesssss in version: 9.3.12-1 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 failure ❌

@OSBotify

OSBotify commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.3.13-1 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify

OSBotify commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.3.15-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/lakchote in version: 9.3.15-10 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CP Staging marks PRs that have been CP'd to staging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants