if (entry != null && entry.pwd) { | if (entry != null && entry.pwd) { | ||||
if (crypto.checkLocalAuth (entry, req.body.pwd)) { | if (crypto.checkLocalAuth (entry, req.body.pwd)) { | ||||
console.info(entry.roles); | console.info(entry.roles); | ||||
return fillSession (req, entry, JSON.parse(entry.roles), returnSession); | |||||
return fillSession (req, entry, entry.roles, returnSession); | |||||
} | } | ||||
return returnError (); | return returnError (); | ||||
} | } |