0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

refactor(console): enable password and verification code auth in sign-in method by default (#2434)

This commit is contained in:
Xiao Yijun 2022-11-14 18:11:23 +08:00 committed by GitHub
parent d634cb1b0e
commit 8869e186d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,13 +46,13 @@ export const computeOnPasswordPrimaryFlagToggled = (
export const getSignInMethodPasswordCheckState = (
signInIdentifier: SignInIdentifier,
isSignUpPasswordRequired: boolean,
originCheckState = false
defaultCheckState = true
) => {
if (signInIdentifier === SignInIdentifier.Username) {
return true;
}
return isSignUpPasswordRequired || originCheckState;
return isSignUpPasswordRequired || defaultCheckState;
};
export const getSignInMethodVerificationCodeCheckState = (signInIdentifier: SignInIdentifier) => {