Send default response
This commit is contained in:
parent
ff57e2ff85
commit
c7d4c3aa76
1 changed files with 4 additions and 2 deletions
|
@ -39,9 +39,11 @@ class VerifyReCaptcha
|
|||
|
||||
$url = parse_url($request->url());
|
||||
|
||||
if (array_key_exists('host', $url)) {
|
||||
return $result->hostname === $url['host'];
|
||||
if (! array_key_exists('host', $url)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $result->hostname === $url['host'];;
|
||||
};
|
||||
|
||||
if ($result->success && (! config('recaptcha.verify_domain') || $verified($result, $request))) {
|
||||
|
|
Loading…
Reference in a new issue