send new login location to user email

This commit is contained in:
Girish Ramakrishnan
2021-11-17 11:53:03 -08:00
parent 2ab2255115
commit 7f45e1db06

View File

@@ -144,7 +144,7 @@ async function sendNewLoginLocation(user, loginLocation) {
const mailOptions = {
from: mailConfig.notificationFrom,
to: user.fallbackEmail,
to: user.email,
subject: ejs.render(translation.translate('{{ newLoginEmail.subject }}', translationAssets.translations || {}, translationAssets.fallback || {}), { cloudron: mailConfig.cloudronName }),
text: render('new_login_location-text.ejs', templateData, translationAssets),
html: render('new_login_location-html.ejs', templateData, translationAssets)