apps/meteor/server/configuration/ldap.ts
Function configureLDAP
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export async function configureLDAP() {
// Register ldap login handler
Accounts.registerLoginHandler('ldap', async (loginRequest: Record<string, any>) => {
if (!loginRequest.ldap || !loginRequest.ldapOptions) {
return undefined;