update enable custom domain to check if email verification only if there is a mail provider

main
TZGyn 1 year ago
parent 9c13c29cfa
commit 1f3f3ae957
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -121,7 +121,11 @@ export const actions: Actions = {
const userId = event.locals.user.id const userId = event.locals.user.id
if (!event.locals.user.email_verified) { if (
!event.locals.user.email_verified &&
env.PRIVATE_MAIL_PROVIDER &&
env.PRIVATE_MAIL_PROVIDER !== ''
) {
return setError( return setError(
form, form,
'enableDomain', 'enableDomain',

Loading…
Cancel
Save