From 8bfaf30ac5c0f8e4ea539e4aa40ddaa34b998511 Mon Sep 17 00:00:00 2001 From: z1pti3 Date: Sun, 27 Dec 2020 14:44:05 +0000 Subject: [PATCH] Added user to system session --- core/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/auth.py b/core/auth.py index 720e1ccc..482204ca 100644 --- a/core/auth.py +++ b/core/auth.py @@ -178,7 +178,7 @@ def generateSession(dataDict): return jwt.encode(dataDict, sessionPrivateKey.encode(), algorithm="RS256") def generateSystemSession(): - data = { "expiry" : time.time() + 10, "admin" : True, "_id" : 0, "primaryGroup" : 0, "authenticated" : True, "api" : True } + data = { "expiry" : time.time() + 10, "admin" : True, "_id" : 0, "user" : "system", "primaryGroup" : 0, "authenticated" : True, "api" : True } return jwt.encode(data, sessionPrivateKey.encode(), algorithm="RS256") def validateSession(sessionToken):