elabftw/elabftw

View on GitHub
src/Auth/Cookie.php

Summary

Maintainability
A
1 hr
Test Coverage

Method tryAuth has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function tryAuth(): AuthResponse
    {
        // compare the provided token with the token saved in SQL database
        $sql = sprintf(
            'SELECT userid, mfa_secret, auth_service, validated
Severity: Minor
Found in src/Auth/Cookie.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status