Send default response

This commit is contained in:
Dane Everitt 2017-03-31 21:16:00 -04:00
parent ff57e2ff85
commit c7d4c3aa76
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -39,9 +39,11 @@ class VerifyReCaptcha
$url = parse_url($request->url()); $url = parse_url($request->url());
if (array_key_exists('host', $url)) { if (! array_key_exists('host', $url)) {
return $result->hostname === $url['host']; return false;
} }
return $result->hostname === $url['host'];;
}; };
if ($result->success && (! config('recaptcha.verify_domain') || $verified($result, $request))) { if ($result->success && (! config('recaptcha.verify_domain') || $verified($result, $request))) {