RocketChat/Rocket.Chat

View on GitHub
apps/meteor/server/configuration/ldap.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function configureLDAP has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export async function configureLDAP() {
    // Register ldap login handler
    Accounts.registerLoginHandler('ldap', async (loginRequest: Record<string, any>) => {
        if (!loginRequest.ldap || !loginRequest.ldapOptions) {
            return undefined;
Severity: Minor
Found in apps/meteor/server/configuration/ldap.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status