diff --git a/routes/pagans.js b/routes/pagans.js index 4988ff8..49f5f94 100755 --- a/routes/pagans.js +++ b/routes/pagans.js @@ -164,7 +164,7 @@ router.post("/", checkHeaders, isAuthenticated, async (req, res) => { const persondata = { alias: req.body.alias, owner: req.body.alias, - profils: ["pagans", "persons"], + profils: ["anonymous","pagans", "persons"], recoveryauth: { email: req.body.email, privatekey: req.body.privatekey, @@ -172,7 +172,7 @@ router.post("/", checkHeaders, isAuthenticated, async (req, res) => { passphrase: req.body.passphrase, }, }; - const personup = Odmdb.cud(`../../${req.body.trustedtribe}/objects/persons`, "C", persondata, {xprofils:["pagan"],xalias:req.body.alias}); + const personup = Odmdb.cud(`../../${req.body.trustedtribe}/objects/persons`, "C", persondata, {xprofils:["anonymous","pagans"],xalias:req.body.alias}); if (log) console.log(currentmod,'person create',personup) if (personup.status==200){ createprocess.data.createperson=true;