0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-04-14 23:11:31 -05:00

fix(schemas): update sms alteration script (#2949)

This commit is contained in:
simeng-li 2023-01-13 18:08:24 +08:00 committed by GitHub
parent 1dfe21d41c
commit dd02fb1bfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@ const alterSignUp = (signUp: OldSignUp) => {
const { identifiers, password, verify } = signUp;
const newIdentifiers = identifiers.map((identifier) => {
if (identifier === OldSignInIdentifier.Sms) {
if (identifier.toLocaleLowerCase() === OldSignInIdentifier.Sms) {
return SignInIdentifier.Phone;
}