Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(console): fix sign-in method can not removed bug #7175

Merged
merged 2 commits into from
Mar 25, 2025

Conversation

simeng-li
Copy link
Contributor

Summary

This PR fixes two console bug:

  1. Sign-in methods cannot be removed if the identifier is enabled as a sign-up identifier.
  2. Setting EmailOrPhone as a sign-up identifier incorrectly appends duplicate email and phone sign-in methods.

Testing

New integration test cases added.

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

@simeng-li simeng-li requested review from a team March 24, 2025 11:27
Copy link

github-actions bot commented Mar 24, 2025

COMPARE TO master

Total Size Diff ⚠️ 📈 +16.51 KB

Diff by File
Name Diff
packages/console/src/pages/SignInExperience/PageContent/SignUpAndSignIn/SignInForm/SignInMethodEditBox/index.tsx 📈 +784 Bytes
packages/console/src/pages/SignInExperience/PageContent/SignUpAndSignIn/SignUpForm/SignUpForm.tsx 📈 +1.19 KB
packages/console/src/pages/SignInExperience/PageContent/SignUpAndSignIn/SignUpForm/SignUpIdentifiersEditBox/index.tsx 📈 +1.54 KB
packages/integration-tests/src/tests/console/sign-in-experience/sign-up-and-sign-in/happy-path.test.ts ⚠️ 📈 +12.93 KB
packages/integration-tests/src/tests/console/sign-in-experience/sign-up-and-sign-in/helpers.ts 📈 +2.46 KB

@simeng-li simeng-li changed the title fix(console): fix sign-in method can't removed bug fix(console): fix sign-in method can not removed bug Mar 24, 2025
Base automatically changed from simeng-log-10898-console-refactor-sign-up-and-sign-in-form to master March 25, 2025 01:53
fix sign-in methods can't removed bug. Also add new integration tests
@simeng-li simeng-li force-pushed the simeng-log-console-integration-tests branch from 9defd55 to bc5a8e3 Compare March 25, 2025 01:58
@simeng-li simeng-li merged commit fd9b03e into master Mar 25, 2025
36 checks passed
@simeng-li simeng-li deleted the simeng-log-console-integration-tests branch March 25, 2025 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants