RocketChat/Rocket.Chat

View on GitHub
apps/meteor/server/lib/cas/middleware.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

const casTicket = function (req: IncomingMessageWithUrl, token: string, callback: () => void): void {
    // get configuration
    if (!settings.get('CAS_enabled')) {
        logger.error('Got ticket validation request, but CAS is not enabled');
        callback();
Severity: Minor
Found in apps/meteor/server/lib/cas/middleware.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status