forked from mirror/pixelfed
Update EmailVerification Middleware
Allow login/logout routes
This commit is contained in:
parent
97869fc100
commit
612082d043
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue