1
0
Fork 0
forked from mirror/pixelfed

Update EmailVerification Middleware

Allow login/logout routes
This commit is contained in:
Daniel Supernault 2018-07-12 10:39:14 -06:00
parent 97869fc100
commit 612082d043

View file

@ -18,7 +18,7 @@ class EmailVerificationCheck
if($request->user() && if($request->user() &&
config('pixelfed.enforce_email_verification') && config('pixelfed.enforce_email_verification') &&
is_null($request->user()->email_verified_at) && 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/*') !$request->is('i/confirm-email/*')
) { ) {
return redirect('/i/verify-email'); return redirect('/i/verify-email');