1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-10-27 12:22:28 +01:00

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());
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))) {