feat: add Hide-Password option for signin method rule field (#3258)

This commit is contained in:
DacongDA
2024-09-30 23:31:41 +08:00
committed by GitHub
parent bf730050d5
commit 3bd52172ea
3 changed files with 5 additions and 1 deletions

View File

@ -1168,7 +1168,7 @@ export function renderLogo(application) {
function isSigninMethodEnabled(application, signinMethod) {
if (application && application.signinMethods) {
return application.signinMethods.filter(item => item.name === signinMethod).length > 0;
return application.signinMethods.filter(item => item.name === signinMethod && item.rule !== "Hide-Password").length > 0;
} else {
return false;
}