From 3c458e66e6ba850f0ba0bda20c45c5a7d0a6318c Mon Sep 17 00:00:00 2001 From: philc Date: Fri, 22 Nov 2024 17:12:51 +0100 Subject: [PATCH] modif Pagans --- apxtri/models/Pagans.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apxtri/models/Pagans.js b/apxtri/models/Pagans.js index e4e9e7b..32d8ead 100644 --- a/apxtri/models/Pagans.js +++ b/apxtri/models/Pagans.js @@ -85,6 +85,7 @@ Pagans.keyrecovery = (emailalias, tribe, search, lg) => { if (person.recoveryauth) emaillist.push({ alias: search, tribe, lg }); } } + console.log(emaillist) emaillist.forEach((e) => { const ret = Pagans.sendmailkey(e); }); @@ -200,7 +201,7 @@ Pagans.sendmailkey = (data) => { person.avecpassphrase = person.passphrase != ""; let tplfile = `../${data.tribe}/template/createidentity_${data.lg}.js`; if (!fs.existsSync(tplfile)) { - tplfile = `..//${data.tribe}/template/createidentity_${data.lg}.js`; + tplfile = `../${data.tribe}/template/createidentity_${data.lg}.js`; if (!fs.existsSync(tplfile)) { return { status: 406, @@ -219,6 +220,7 @@ Pagans.sendmailkey = (data) => { contentType:"text/plain" }, */ + const maildata = { from: tplemail.sender, to: person.email,