ssh! и документы
This commit is contained in:
@@ -10,7 +10,9 @@ const transporter = nodemailer.createTransport({
|
||||
secure: false, // true для 465, false для других портов
|
||||
auth: {
|
||||
user: process.env.SMTP_USER,
|
||||
pass: process.env.SMTP_PASS
|
||||
pass: (process.env.SMTP_PASS && process.env.SMTP_PASS.startsWith('"') && process.env.SMTP_PASS.endsWith('"'))
|
||||
? process.env.SMTP_PASS.slice(1, -1)
|
||||
: process.env.SMTP_PASS
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user