fix: add verifySSL option to mail settings

This commit is contained in:
NGPixel
2020-05-08 14:35:57 -04:00
parent 6a4b25bc28
commit 2ff0e42c1d
8 changed files with 30 additions and 9 deletions

View File

@@ -13,7 +13,10 @@ module.exports = {
let conf = {
host: WIKI.config.mail.host,
port: WIKI.config.mail.port,
secure: WIKI.config.mail.secure
secure: WIKI.config.mail.secure,
tls: {
rejectUnauthorized: !(WIKI.config.mail.verifySSL === false)
}
}
if (_.get(WIKI.config, 'mail.user', '').length > 1) {
conf = {