diff --git a/models/Pagans.js b/models/Pagans.js index 4a7bfbe..2db66e5 100644 --- a/models/Pagans.js +++ b/models/Pagans.js @@ -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; diff --git a/models/Wwws.js b/models/Wwws.js index f9c0d19..3170027 100644 --- a/models/Wwws.js +++ b/models/Wwws.js @@ -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) {