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 },
};
}
const persondata= fs.readJsonSync(personfile);
if (!persondata.recoveryauth){
return {
status:404,
@ -120,7 +121,6 @@ Pagans.sendmailkey = (data) => {
data:{alias:data.alias, tribe:data.tribe,email:data.email}
}
}
const persondata= fs.readJsonSync(personfile);
person.email = persondata.recoveryauth.email;
person.publickey = persondata.recoveryauth.publickey;
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;
} else {
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.msg) msg+=schema.msg
if (schema.multimsg) {