From b891d8f516916c58779bd646e68c88ac40069e63 Mon Sep 17 00:00:00 2001 From: Erik Roemmelt Date: Wed, 24 Jul 2019 18:46:08 +0200 Subject: [PATCH] Demo: fix3 --- server/authorization.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/authorization.js b/server/authorization.js index dead7fc..dc9fb05 100644 --- a/server/authorization.js +++ b/server/authorization.js @@ -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 ();