feat: add LDAP signin method (#2591)

Add support for LDAP login methods
Add option to control LDAP user in password login method.
This commit is contained in:
HGZ-20
2024-01-08 21:07:34 +08:00
committed by GitHub
parent 0199ad9aaa
commit ffa54247cd
57 changed files with 216 additions and 15 deletions

View File

@ -1155,6 +1155,14 @@ export function isWebAuthnEnabled(application) {
}
}
export function isLdapEnabled(application) {
if (application) {
return application.signinMethods.filter(item => item.name === "LDAP").length > 0;
} else {
return false;
}
}
export function getLoginLink(application) {
let url;
if (application === null) {