0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix(console): disable secondary should remove sign in methods (#1384)

This commit is contained in:
Wang Sijie 2022-07-03 22:46:15 +08:00 committed by GitHub
parent f01390a7b2
commit 6e3c461a88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,10 @@ const findMethodState = (
return SignInMethodState.Primary;
}
if (!signInMethods.enableSecondary) {
return SignInMethodState.Disabled;
}
if (signInMethods[method]) {
return SignInMethodState.Secondary;
}