mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
fix(console): fix sign-up identifier key (#2876)
This commit is contained in:
parent
f3b2498b70
commit
dee3ca0891
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ export const signInIdentifiers = Object.values(SignInIdentifier);
|
||||||
export const signUpIdentifiersMapping: { [key in SignUpIdentifier]: SignInIdentifier[] } = {
|
export const signUpIdentifiersMapping: { [key in SignUpIdentifier]: SignInIdentifier[] } = {
|
||||||
[SignUpIdentifier.Username]: [SignInIdentifier.Username],
|
[SignUpIdentifier.Username]: [SignInIdentifier.Username],
|
||||||
[SignUpIdentifier.Email]: [SignInIdentifier.Email],
|
[SignUpIdentifier.Email]: [SignInIdentifier.Email],
|
||||||
[SignUpIdentifier.Sms]: [SignInIdentifier.Phone],
|
[SignUpIdentifier.Phone]: [SignInIdentifier.Phone],
|
||||||
[SignUpIdentifier.EmailOrSms]: [SignInIdentifier.Email, SignInIdentifier.Phone],
|
[SignUpIdentifier.EmailOrSms]: [SignInIdentifier.Email, SignInIdentifier.Phone],
|
||||||
[SignUpIdentifier.None]: [],
|
[SignUpIdentifier.None]: [],
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@ import type { SignInExperience, SignInIdentifier, SignUp } from '@logto/schemas'
|
||||||
|
|
||||||
export enum SignUpIdentifier {
|
export enum SignUpIdentifier {
|
||||||
Email = 'email',
|
Email = 'email',
|
||||||
Sms = 'sms',
|
Phone = 'phone',
|
||||||
Username = 'username',
|
Username = 'username',
|
||||||
EmailOrSms = 'emailOrSms',
|
EmailOrSms = 'emailOrSms',
|
||||||
None = 'none',
|
None = 'none',
|
||||||
|
|
Loading…
Reference in a new issue