apps/meteor/server/lib/cas/middleware.ts
Function casTicket
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
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();