mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-03-31 06:24:00 -04:00
Fixed SMTP_SECURE type check within variables.js. Removed smtpSecure checks from mail.js. Disable TLS certificate checks within mail.js since this could cause issues with self-hosted solutions
This commit is contained in:
@@ -24,7 +24,10 @@ const bytes = require('../utils/bytes');
|
||||
const transport = nodemailer.createTransport({
|
||||
host: variables.smtpHost,
|
||||
port: parseInt(variables.smtpPort),
|
||||
secure: (variables.smtpSecure === 'true' || variables.smtpSecure === true),
|
||||
secure: variables.smtpSecure,
|
||||
tls: {
|
||||
rejectUnauthorized: false // Skip TLS Certificate checks for Self-Hosted systems
|
||||
},
|
||||
auth: {
|
||||
user: variables.smtpUsername,
|
||||
pass: variables.smtpPassword
|
||||
|
||||
Reference in New Issue
Block a user