mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 01:44:45 +02:00
Send default response
This commit is contained in:
parent
ff57e2ff85
commit
c7d4c3aa76
@ -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…
x
Reference in New Issue
Block a user