TryGhost/Ghost

View on GitHub
ghost/admin/mirage/config/authentication.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function mockAuthentication has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function mockAuthentication(server) {
    server.post('/session', function () {
        // Password sign-in
        return new Response(201);
    });
Severity: Major
Found in ghost/admin/mirage/config/authentication.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status