Make new login email translatable

Fixes #798
This commit is contained in:
Johannes Zellner
2021-07-29 10:54:36 +02:00
parent ef56bf9888
commit eda3cd83ae
3 changed files with 9 additions and 9 deletions

View File

@@ -170,7 +170,7 @@ function sendNewLoginLocation(user, loginLocation) {
const mailOptions = {
from: mailConfig.notificationFrom,
to: user.fallbackEmail,
subject: `[${mailConfig.cloudronName}] New login on your account`,
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)
};