Skip to content

Commit 0ee80b1

Browse files
committed
fix captcha middleware using wrong function when disabled
1 parent fa04bb1 commit 0ee80b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Middleware/VerifyReCaptcha.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class VerifyReCaptcha
1717
*/
1818
public function handle($request, Closure $next)
1919
{
20-
if (!config('recaptcha.enabled')) return next($request);
20+
if (!config('recaptcha.enabled')) return $next($request);
2121

2222
$response_domain = null;
2323

0 commit comments

Comments
 (0)