Skip to content

Commit 0e0206f

Browse files
committed
fixed
1 parent a5b94ed commit 0e0206f

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/Core/CurlRequestClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function post($url, $body, $options = [])
2525
$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
2626

2727
if (false === $response) {
28-
return '{"success": false, "error-codes": ["Curl Error Code: '.GoogleReCaptchaV3Response::ERROR_TIMEOUT.'"]}';
28+
return '{"success": false, "error-codes": ["Curl Error Code: '.GoogleReCaptchaV2Response::ERROR_TIMEOUT.'"]}';
2929
}
3030

3131
if ($httpCode !== 200) {

src/Core/GuzzleRequestClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function post($url, $body, $options = [])
2727
} catch (ClientException $e) {
2828
return '{"success": false, "error-codes": ["Guzzle Client Error Code: '.$e->getCode().'"]}';
2929
} catch (ConnectException $e) {
30-
return '{"success": false, "error-codes": ["Guzzle Client Error Code: '.GoogleReCaptchaV3Response::ERROR_TIMEOUT.'"]}';
30+
return '{"success": false, "error-codes": ["Guzzle Client Error Code: '.GoogleReCaptchaV2Response::ERROR_TIMEOUT.'"]}';
3131
}
3232
}
3333
}

src/Validations/GoogleReCaptchaV2ValidationRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public function __construct()
2828
public function passes($attribute, $value)
2929
{
3030
$response = GoogleReCaptchaV2::verifyResponse($value, app('request')->getClientIp());
31-
dd(json_encode($response->toArray()));
3231
$this->message = $response->getMessage();
3332

3433
return $response->isSuccess();

0 commit comments

Comments
 (0)