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

@ -1125,6 +1125,9 @@ class LoginPage extends React.Component {
]);
application?.signinMethods?.forEach((signinMethod) => {
if (signinMethod.rule === "Hide-Password") {
return;
}
const item = itemsMap.get(generateItemKey(signinMethod.name, signinMethod.rule));
if (item) {
let label = signinMethod.name === signinMethod.displayName ? item.label : signinMethod.displayName;