Update EmailVerificationCheck middleware

This commit is contained in:
Daniel Supernault 2018-08-12 20:36:01 -06:00
parent 8eb04f7433
commit a2eb1f02ba
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -18,8 +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('log*') &&
!$request->is('i/confirm-email/*')
!$request->is('i/verify-email', 'log*', 'i/confirm-email/*', 'settings/home')
) {
return redirect('/i/verify-email');
}