From 01f63f7122ee0c89b537c919506cef442e00e74c Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Thu, 11 Apr 2024 20:34:57 -0400 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20bother=20running=20this=20local?= =?UTF-8?q?ly,=20it=E2=80=99s=20not=20meant=20to?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Middleware/VerifyReCaptcha.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Middleware/VerifyReCaptcha.php b/app/Http/Middleware/VerifyReCaptcha.php index 762a9646d1..bfe09ce984 100644 --- a/app/Http/Middleware/VerifyReCaptcha.php +++ b/app/Http/Middleware/VerifyReCaptcha.php @@ -19,6 +19,10 @@ public function handle(Request $request, \Closure $next): mixed return $next($request); } + if (app()->isLocal()) { + return $next($request); + } + if ($request->filled('g-recaptcha-response')) { $client = new Client(); $res = $client->post(config('recaptcha.domain'), [