-
-
Notifications
You must be signed in to change notification settings - Fork 493
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(experience): fix the email/phone identifier conflict handling log…
…ic during user registration fix the email/phone identifier conflict handling logic during user registration
- Loading branch information
Showing
3 changed files
with
61 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
"@logto/experience": patch | ||
--- | ||
|
||
fix the email/phone identifier conflict handling logic during user registration. | ||
|
||
When a user attempts to register with an email/phone that already exists: | ||
|
||
### Previous Behavior | ||
|
||
"Sign in instead" modal will be shown when: | ||
|
||
- The email/phone identifier has been verified through a verification code validation | ||
- Identifier type (email/phone) was enabled in sign-in methods | ||
|
||
This caused an issue when: | ||
|
||
- Only password authentication method was enabled in the sign-in method settings. | ||
- When users clicked "Sign in instead" action button, the API call will throw an sign-in method not enabled error. Which is confusing for the user. | ||
|
||
Expected behavior: Show the "Email/phone already exists" error modal directly. If only password authentication is enabled. User should not be able to sign in with email/phone directly. | ||
|
||
### Fixed Behavior | ||
|
||
Shows the "Sign in instead" modal if: | ||
|
||
- The email/phone identifier type is enabled in the sign-in method settings and the verification code is enabled for the identifier. | ||
|
||
Otherwise, shows the "Email/phone already exists" error modal directly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters