1
0
forked from apxtri/apxtri

fix bug recovery

This commit is contained in:
philc 2024-06-24 16:31:57 +02:00
parent f591f8a974
commit 7ebbc29d73
2 changed files with 2 additions and 2 deletions

View File

@ -112,6 +112,7 @@ Pagans.sendmailkey = (data) => {
data: { alias:data.alias, tribe:data.tribe }, data: { alias:data.alias, tribe:data.tribe },
}; };
} }
const persondata= fs.readJsonSync(personfile);
if (!persondata.recoveryauth){ if (!persondata.recoveryauth){
return { return {
status:404, status:404,
@ -120,7 +121,6 @@ Pagans.sendmailkey = (data) => {
data:{alias:data.alias, tribe:data.tribe,email:data.email} data:{alias:data.alias, tribe:data.tribe,email:data.email}
} }
} }
const persondata= fs.readJsonSync(personfile);
person.email = persondata.recoveryauth.email; person.email = persondata.recoveryauth.email;
person.publickey = persondata.recoveryauth.publickey; person.publickey = persondata.recoveryauth.publickey;
person.privatekey = persondata.recoveryauth.privatekey; person.privatekey = persondata.recoveryauth.privatekey;

View File

@ -154,7 +154,7 @@ Wwws.initlocaldata = (tribe, appname, pagename, version, profils, lg) => {
localstorage.schema[name] = schema.data.schema; localstorage.schema[name] = schema.data.schema;
} else { } else {
console.log(schema); console.log(schema);
let msg=`Check your ${fileparam} for schema in ${pagename} :` let msg=`Check your ${fileparam} for schema in ${pagename}, for ${schema.status} ${schema.ref} ${schema.msg} :`
if (schema.status==406){ if (schema.status==406){
if (schema.msg) msg+=schema.msg if (schema.msg) msg+=schema.msg
if (schema.multimsg) { if (schema.multimsg) {