From 33052cddb9cea2d4a75a12dfc4873190fb19db9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Tue, 4 Jan 2022 16:03:38 +0000 Subject: [PATCH] fix: session token retriever --- lib/new-admin/graphql/modules/userManagement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/new-admin/graphql/modules/userManagement.js b/lib/new-admin/graphql/modules/userManagement.js index 13c42e70..362e150f 100644 --- a/lib/new-admin/graphql/modules/userManagement.js +++ b/lib/new-admin/graphql/modules/userManagement.js @@ -240,7 +240,7 @@ const reset2FA = (token, userID, code, context) => { } const getToken = context => { - if (_.isNil(context.req.cookies.lid) || _.isNil(context.req.session.user.id)) + if (_.isNil(context.req.cookies['lamassu_sid']) || _.isNil(context.req.session.user.id)) throw new authErrors.AuthenticationError('Authentication failed') return context.req.session.user.id