mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
feat(ui): filter invalid sign-in method (#2389)
This commit is contained in:
parent
ebb34ff923
commit
fe9b592ec2
1 changed files with 5 additions and 1 deletions
|
@ -9,7 +9,11 @@ export const useSieMethods = () => {
|
|||
return {
|
||||
signUpMethods: methods ?? [],
|
||||
signUpSettings: { password, verify },
|
||||
signInMethods: experienceSettings?.signIn.methods ?? [],
|
||||
signInMethods:
|
||||
experienceSettings?.signIn.methods.filter(
|
||||
// Filter out empty settings
|
||||
({ password, verificationCode }) => password || verificationCode
|
||||
) ?? [],
|
||||
socialConnectors: experienceSettings?.socialConnectors ?? [],
|
||||
signInMode: experienceSettings?.signInMode,
|
||||
forgotPassword: experienceSettings?.forgotPassword,
|
||||
|
|
Loading…
Reference in a new issue