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:
parent
f01390a7b2
commit
6e3c461a88
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,10 @@ const findMethodState = (
|
||||||
return SignInMethodState.Primary;
|
return SignInMethodState.Primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!signInMethods.enableSecondary) {
|
||||||
|
return SignInMethodState.Disabled;
|
||||||
|
}
|
||||||
|
|
||||||
if (signInMethods[method]) {
|
if (signInMethods[method]) {
|
||||||
return SignInMethodState.Secondary;
|
return SignInMethodState.Secondary;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue