mirror of https://github.com/pixelfed/pixelfed.git
Update EmailVerificationCheck middleware, allow users to edit email after registration in case of typos
This commit is contained in:
parent
fe2627c60a
commit
29e23d80cb
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue