mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
refactor(console): enabled verification code checkbox when sign-up identifier set to none (#2360)
This commit is contained in:
parent
d015aa934c
commit
ac97fb75b0
1 changed files with 1 additions and 3 deletions
|
@ -134,9 +134,7 @@ const SignInMethodEditBox = ({
|
|||
signInMethod.identifier !== SignInIdentifier.Username && !isSignUpPasswordRequired
|
||||
}
|
||||
isVerificationCodeCheckable={
|
||||
(isSignUpPasswordRequired && isSignUpVerificationRequired) ||
|
||||
// Note: the next line is used to handle the case when the sign-up identifier is `Username`
|
||||
(isSignUpPasswordRequired && signInMethod.identifier !== SignInIdentifier.Username)
|
||||
!(isSignUpVerificationRequired && !isSignUpPasswordRequired)
|
||||
}
|
||||
isDeletable={!requiredSignInIdentifiers.includes(signInMethod.identifier)}
|
||||
onVerificationStateChange={(identifier, verification, checked) => {
|
||||
|
|
Loading…
Reference in a new issue