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:
parent
d634cb1b0e
commit
8869e186d9
1 changed files with 2 additions and 2 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue