fisharebest/webtrees

View on GitHub
app/Http/RequestHandlers/LoginAction.php

Summary

Maintainability
A
1 hr
Test Coverage

Method doLogin has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function doLogin(string $username, #[\SensitiveParameter] string $password): void
    {
        if ($_COOKIE === []) {
            Log::addAuthenticationLog('Login failed (no session cookies): ' . $username);
            throw new Exception(I18N::translate('You cannot sign in because your browser does not accept cookies.'));
Severity: Minor
Found in app/Http/RequestHandlers/LoginAction.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status