From 81e6a60def8ad53ef22ca46bd20b902978bcc0fa Mon Sep 17 00:00:00 2001 From: Erik Roemmelt Date: Wed, 24 Jul 2019 16:55:02 +0200 Subject: [PATCH] Demo: Changes for ohm-server --- server/authorization.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/authorization.js b/server/authorization.js index bc66afa..9b88055 100644 --- a/server/authorization.js +++ b/server/authorization.js @@ -129,7 +129,7 @@ const authorization = { if (entry != null && entry.pwd) { if (crypto.checkLocalAuth (entry, req.body.pwd)) { console.info(entry.roles); - return fillSession (req, entry, JSON.parse(entry.roles), returnSession); + return fillSession (req, entry, entry.roles, returnSession); } return returnError (); }