diff options
Diffstat (limited to 'server/initializers/checker-after-init.ts')
-rw-r--r-- | server/initializers/checker-after-init.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/initializers/checker-after-init.ts b/server/initializers/checker-after-init.ts index 5ef72058b..4281e2bb5 100644 --- a/server/initializers/checker-after-init.ts +++ b/server/initializers/checker-after-init.ts | |||
@@ -139,16 +139,16 @@ function checkSecretsConfig () { | |||
139 | function checkEmailConfig () { | 139 | function checkEmailConfig () { |
140 | if (!isEmailEnabled()) { | 140 | if (!isEmailEnabled()) { |
141 | if (CONFIG.SIGNUP.ENABLED && CONFIG.SIGNUP.REQUIRES_EMAIL_VERIFICATION) { | 141 | if (CONFIG.SIGNUP.ENABLED && CONFIG.SIGNUP.REQUIRES_EMAIL_VERIFICATION) { |
142 | throw new Error('Emailer is disabled but you require signup email verification.') | 142 | throw new Error('SMTP is not configured but you require signup email verification.') |
143 | } | 143 | } |
144 | 144 | ||
145 | if (CONFIG.SIGNUP.ENABLED && CONFIG.SIGNUP.REQUIRES_APPROVAL) { | 145 | if (CONFIG.SIGNUP.ENABLED && CONFIG.SIGNUP.REQUIRES_APPROVAL) { |
146 | // eslint-disable-next-line max-len | 146 | // eslint-disable-next-line max-len |
147 | logger.warn('Emailer is disabled but signup approval is enabled: PeerTube will not be able to send an email to the user upon acceptance/rejection of the registration request') | 147 | logger.warn('SMTP is not configured but signup approval is enabled: PeerTube will not be able to send an email to the user upon acceptance/rejection of the registration request') |
148 | } | 148 | } |
149 | 149 | ||
150 | if (CONFIG.CONTACT_FORM.ENABLED) { | 150 | if (CONFIG.CONTACT_FORM.ENABLED) { |
151 | logger.warn('Emailer is disabled so the contact form will not work.') | 151 | logger.warn('SMTP is not configured so the contact form will not work.') |
152 | } | 152 | } |
153 | } | 153 | } |
154 | } | 154 | } |