From a9d588e15e17380971feca6c6af6c871ab6a7c17 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 9 Dec 2022 03:55:06 -0700 Subject: [PATCH] Update middleware --- app/Http/Middleware/EmailVerificationCheck.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Middleware/EmailVerificationCheck.php b/app/Http/Middleware/EmailVerificationCheck.php index e3d278c3..5c543b5c 100644 --- a/app/Http/Middleware/EmailVerificationCheck.php +++ b/app/Http/Middleware/EmailVerificationCheck.php @@ -17,7 +17,7 @@ class EmailVerificationCheck public function handle($request, Closure $next) { if ($request->user() && - config_cache('pixelfed.enforce_email_verification') && + config('pixelfed.enforce_email_verification') && is_null($request->user()->email_verified_at) && !$request->is( 'i/auth/*',