Add error when email system is not configured and using the forgot
password system
This commit is contained in:
parent
56af5222c1
commit
3b3b18203f
6 changed files with 28 additions and 6 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue