This commit is contained in:
lesion 2022-06-23 16:32:42 +02:00
parent 658e038e66
commit e287f3f537
No known key found for this signature in database
GPG key ID: 352918250B012177
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "gancio",
"version": "1.5.0-rc.6",
"version": "1.5.0-rc.7",
"description": "A shared agenda for local communities",
"author": "lesion",
"scripts": {

View file

@ -9,7 +9,7 @@ const locales = require('../../locales')
const mail = {
send (addresses, template, locals, locale) {
locale = locale || settingsController.settings.instance_locale
if (process.env.NODE_ENV === 'production' && (!settingsController.settings.admin_email || !settingsController.settings.smtp || !settingsController.settings.smtp.user)) {
if (process.env.NODE_ENV === 'production' && (!settingsController.settings.admin_email || !settingsController.settings.smtp)) {
log.error(`Cannot send any email: SMTP Email configuration not completed!`)
return
}