From 612082d043ab789aa4285df0301742cb669c6f18 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 12 Jul 2018 10:39:14 -0600 Subject: [PATCH] Update EmailVerification Middleware Allow login/logout routes --- 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 04ee1fb1..b9ff791d 100644 --- a/app/Http/Middleware/EmailVerificationCheck.php +++ b/app/Http/Middleware/EmailVerificationCheck.php @@ -18,7 +18,7 @@ class EmailVerificationCheck if($request->user() && config('pixelfed.enforce_email_verification') && is_null($request->user()->email_verified_at) && - !$request->is('i/verify-email') && !$request->is('login') && + !$request->is('i/verify-email') && !$request->is('log*') && !$request->is('i/confirm-email/*') ) { return redirect('/i/verify-email');