mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-30 05:24:56 +02:00
feat: add support for non-email usernames in SMTP configuration
This commit is contained in:
@@ -18,7 +18,7 @@ async function sendMailProvider(req, plan, monthchange) {
|
||||
port: process.env.SMTP_PORT || 465,
|
||||
secure: smtpsecure,
|
||||
auth: {
|
||||
user: process.env.SMTP_USER_EMAIL,
|
||||
user: process.env.SMTP_USERNAME ? process.env.SMTP_USERNAME : process.env.SMTP_USER_EMAIL,
|
||||
pass: process.env.SMTP_PASS,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user