Anhskohbo\NoCaptcha\NoCaptcha::verifyResponse PHP Method

verifyResponse() public method

Verify no-captcha response.
public verifyResponse ( string $response, string $clientIp = null ) : boolean
$response string
$clientIp string
return boolean
    public function verifyResponse($response, $clientIp = null)
    {
        if (empty($response)) {
            return false;
        }
        $response = $this->sendRequestVerify(['secret' => $this->secret, 'response' => $response, 'remoteip' => $clientIp]);
        return isset($response['success']) && $response['success'] === true;
    }