diff --git a/models/Pagans.js b/models/Pagans.js index 6a10eac..a2bff21 100644 --- a/models/Pagans.js +++ b/models/Pagans.js @@ -123,9 +123,6 @@ Pagans.sendmailkey = (data) => { person.publickey = data.publickey; } person.avecpassphrase=(person.passphrase!="") - console.log("person:", person); - - console.log(path.resolve(`../../${data.tribe}/template/createidentity_${data.lg}.js`)) let tplfile=`../../${data.tribe}/template/createidentity_${data.lg}.js`; if (!fs.existsSync(tplfile)){ tplfile=`../template/createidentity_${data.lg}.js`; @@ -141,6 +138,7 @@ Pagans.sendmailkey = (data) => { const tplemail = require(path.resolve(tplfile)) const maildata = { + from:tplemail.sender, to: person.email, subject: Mustache.render(tplemail.subject, person), html: Mustache.render(tplemail.html, person),