phpmyadmin/phpmyadmin

View on GitHub
src/Plugins/TwoFactor/WebAuthn.php

Summary

Maintainability
A
1 hr
Test Coverage

Method check has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function check(ServerRequest $request): bool
    {
        $this->provided = false;
        $authenticatorResponse = $request->getParsedBodyParam('webauthn_request_response', '');
        if ($authenticatorResponse === '' || ! isset($_SESSION['WebAuthnCredentialRequestOptions'])) {
Severity: Minor
Found in src/Plugins/TwoFactor/WebAuthn.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status