Skip to content

Commit

Permalink
Don’t bother running this locally, it’s not meant to
Browse files Browse the repository at this point in the history
  • Loading branch information
lancepioch committed Apr 12, 2024
1 parent 0a6c43b commit 01f63f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Http/Middleware/VerifyReCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'), [
Expand Down

0 comments on commit 01f63f7

Please sign in to comment.