diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-27 16:41:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-27 16:41:35 +0200 |
commit | 787d822cd471d1e4bd5a37c687c78cd5f69d8645 (patch) | |
tree | 6b49c10cdb0450f2531fdc52edd49f32dec3d5c2 /server/initializers | |
parent | 809fecf2b4683bd0e9890233f8a707c59e25134b (diff) | |
download | PeerTube-787d822cd471d1e4bd5a37c687c78cd5f69d8645.tar.gz PeerTube-787d822cd471d1e4bd5a37c687c78cd5f69d8645.tar.zst PeerTube-787d822cd471d1e4bd5a37c687c78cd5f69d8645.zip |
Rephrase emailer conflict error messages
Diffstat (limited to 'server/initializers')
-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 | } |