diff --git a/src/alerts.js b/src/alerts.js index 23e5ac2..73e07aa 100755 --- a/src/alerts.js +++ b/src/alerts.js @@ -545,7 +545,6 @@ async function sendEmailAlerts() { props: { user, triggers: userTriggers, - address: config.web.address, }, }; }).filter(Boolean); diff --git a/src/auth.js b/src/auth.js index f4ac9c1..ba02630 100755 --- a/src/auth.js +++ b/src/auth.js @@ -236,7 +236,6 @@ async function updatePassword(password, reqUser, reqSession) { user: reqUser, ip: reqUser.ip, country: country?.name, - address: config.web.address, timestamp: now, }, }]); diff --git a/src/email.js b/src/email.js index 30b3163..041d21a 100644 --- a/src/email.js +++ b/src/email.js @@ -20,7 +20,12 @@ const resend = (() => { })(); export async function renderEmail(template, { to, subject, props }) { - const { html, text } = await emailTemplates.render(`${template}.vue`, { props }); + const { html, text } = await emailTemplates.render(`${template}.vue`, { + props: { + ...props, + address: config.web.address, + }, + }); return { from: config.email.from,