0
Fork 0
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:
simeng-li 2023-01-11 15:16:13 +08:00 committed by GitHub
parent f3b2498b70
commit dee3ca0891
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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]: [],
}; };

View file

@ -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',