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,