1
0
forked from apxtri/apxtri
This commit is contained in:
philc 2024-03-22 22:09:20 +01:00
parent cc0c9e7f5e
commit c6f6b3272a

View File

@ -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),