From 88b866c96af57ecb11470a67270f4bdd2511be6f Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Wed, 22 Jul 2026 06:02:42 +0200 Subject: [PATCH] Setting e-mail web address in email module. --- src/alerts.js | 1 - src/auth.js | 1 - src/email.js | 7 ++++++- 3 files changed, 6 insertions(+), 3 deletions(-) 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,