Update email confirmation middleware, add 2FA to allow list. Fixes #2385

This commit is contained in:
Daniel Supernault 2020-08-15 23:37:10 -06:00
parent 5d50729641
commit 27f3b29cf8
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -20,6 +20,7 @@ class EmailVerificationCheck
config('pixelfed.enforce_email_verification') &&
is_null($request->user()->email_verified_at) &&
!$request->is(
'i/auth/*',
'i/verify-email',
'log*',
'i/confirm-email/*',