1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-24 08:44:02 +00:00

Update EmailVerificationCheck middleware, allow users to edit email after registration in case of typos

This commit is contained in:
Daniel Supernault 2019-09-01 17:54:06 -06:00
parent fe2627c60a
commit 29e23d80cb
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -19,7 +19,13 @@ class EmailVerificationCheck
if ($request->user() &&
config('pixelfed.enforce_email_verification') &&
is_null($request->user()->email_verified_at) &&
!$request->is('i/verify-email', 'log*', 'i/confirm-email/*', 'settings/home')
!$request->is(
'i/verify-email',
'log*',
'i/confirm-email/*',
'settings/home',
'settings/email'
)
) {
return redirect('/i/verify-email');
}