Browse Source

Demo: fix3

developer
Erik Römmelt 4 years ago
parent
commit
b891d8f516
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      server/authorization.js

+ 1
- 1
server/authorization.js View File

@@ -127,8 +127,8 @@ const authorization = {
Users.findById (req.body.user) .exec (function (err, entry) {
// If there is a local user AND it has a password associated, test against this, and only this
if (entry != null && entry.pwd) {
console.info(entry);
if (crypto.checkLocalAuth (entry, req.body.pwd)) {
console.info(entry.roles);
return fillSession (req, entry, entry.roles, returnSession);
}
return returnError ();

Loading…
Cancel
Save