mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update EmailVerificationCheck middleware
This commit is contained in:
parent
8eb04f7433
commit
a2eb1f02ba
1 changed files with 1 additions and 2 deletions
|
@ -18,8 +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('log*') &&
|
!$request->is('i/verify-email', 'log*', 'i/confirm-email/*', 'settings/home')
|
||||||
!$request->is('i/confirm-email/*')
|
|
||||||
) {
|
) {
|
||||||
return redirect('/i/verify-email');
|
return redirect('/i/verify-email');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue