forked from mirror/pixelfed
Update EmailVerificationCheck middleware, allow users to edit email after registration in case of typos
This commit is contained in:
parent
fe2627c60a
commit
29e23d80cb
1 changed files with 7 additions and 1 deletions
|
@ -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 a new issue