Add error when email system is not configured and using the forgot

password system
This commit is contained in:
Chocobozzz 2018-12-05 15:10:45 +01:00
parent 56af5222c1
commit 3b3b18203f
No known key found for this signature in database
GPG key ID: 583A612D890159BE
6 changed files with 28 additions and 6 deletions

View file

@ -11,6 +11,7 @@ import { ClientHtml } from '../../lib/client-html'
import { auditLoggerFactory, CustomConfigAuditView, getAuditIdFromRes } from '../../helpers/audit-logger'
import { remove, writeJSON } from 'fs-extra'
import { getServerCommit } from '../../helpers/utils'
import { Emailer } from '../../lib/emailer'
const packageJSON = require('../../../../package.json')
const configRouter = express.Router()
@ -61,6 +62,9 @@ async function getConfig (req: express.Request, res: express.Response) {
css: CONFIG.INSTANCE.CUSTOMIZATIONS.CSS
}
},
email: {
enabled: Emailer.Instance.isEnabled()
},
serverVersion: packageJSON.version,
serverCommit,
signup: {