Skip to content

reCAPTCHA validation refactoring #128

@naydav

Description

@naydav

Adapt code to new interface

/**
 * Validate reCAPTCHA response
 *
 * @api
 */
interface ValidatorInterface
{
    /**
     * Return true if reCAPTCHA validation has passed
     *
     * @param string $reCaptchaResponse
     * @param ValidationConfigInterface $validationConfig
     * @return ValidationResult
     */
    public function isValid(
        string $reCaptchaResponse,
        ValidationConfigInterface $validationConfig
    ): ValidationResult;
}

Metadata

Metadata

Assignees

Labels

Component: Google reCAPTCHAIssues and Pull Requests related to reCAPTCHA should be marked with this label

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions