modif tpl
This commit is contained in:
@@ -125,10 +125,10 @@ Pagans.sendmailkey = (data) => {
|
||||
person.avecpassphrase=(person.passphrase!="")
|
||||
console.log("person:", person);
|
||||
|
||||
|
||||
let tplfile=`../../../${data.tribe}/template/createidentity_${data.lg}.js`;
|
||||
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=`../../adminapi/template/createidentity_${data.lg}.js`;
|
||||
tplfile=`../template/createidentity_${data.lg}.js`;
|
||||
if (!fs.existsSync(tplfile)){
|
||||
return {
|
||||
status:406,
|
||||
@@ -138,7 +138,7 @@ Pagans.sendmailkey = (data) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
const tplemail = require(tplfile)
|
||||
const tplemail = require(path.resolve(tplfile))
|
||||
|
||||
const maildata = {
|
||||
to: person.email,
|
||||
|
Reference in New Issue
Block a user