fix bug recovery
This commit is contained in:
parent
f591f8a974
commit
7ebbc29d73
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user