modif Pagans
This commit is contained in:
parent
a278cdf26f
commit
3c458e66e6
@ -85,6 +85,7 @@ Pagans.keyrecovery = (emailalias, tribe, search, lg) => {
|
|||||||
if (person.recoveryauth) emaillist.push({ alias: search, tribe, lg });
|
if (person.recoveryauth) emaillist.push({ alias: search, tribe, lg });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log(emaillist)
|
||||||
emaillist.forEach((e) => {
|
emaillist.forEach((e) => {
|
||||||
const ret = Pagans.sendmailkey(e);
|
const ret = Pagans.sendmailkey(e);
|
||||||
});
|
});
|
||||||
@ -200,7 +201,7 @@ Pagans.sendmailkey = (data) => {
|
|||||||
person.avecpassphrase = person.passphrase != "";
|
person.avecpassphrase = person.passphrase != "";
|
||||||
let tplfile = `../${data.tribe}/template/createidentity_${data.lg}.js`;
|
let tplfile = `../${data.tribe}/template/createidentity_${data.lg}.js`;
|
||||||
if (!fs.existsSync(tplfile)) {
|
if (!fs.existsSync(tplfile)) {
|
||||||
tplfile = `..//${data.tribe}/template/createidentity_${data.lg}.js`;
|
tplfile = `../${data.tribe}/template/createidentity_${data.lg}.js`;
|
||||||
if (!fs.existsSync(tplfile)) {
|
if (!fs.existsSync(tplfile)) {
|
||||||
return {
|
return {
|
||||||
status: 406,
|
status: 406,
|
||||||
@ -219,6 +220,7 @@ Pagans.sendmailkey = (data) => {
|
|||||||
contentType:"text/plain"
|
contentType:"text/plain"
|
||||||
},
|
},
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const maildata = {
|
const maildata = {
|
||||||
from: tplemail.sender,
|
from: tplemail.sender,
|
||||||
to: person.email,
|
to: person.email,
|
||||||
|
Loading…
Reference in New Issue
Block a user