From f1bcd8368110c485ecd6815045d33c01c7f72d97 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 15 Nov 2018 14:35:12 +0100 Subject: [PATCH] Eliminating session object --- server/src/schema/schema.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/server/src/schema/schema.js b/server/src/schema/schema.js index 35f482a4a..369feea87 100644 --- a/server/src/schema/schema.js +++ b/server/src/schema/schema.js @@ -390,15 +390,6 @@ function authenticate (encodedToken, callBackFunction) { if (global.INFO_LOG === true) { logger.debug('[INFO] ' + MODULE_NAME + ' -> authenticate -> onValidated -> onUserFound -> Existing User: ' + JSON.stringify(user)) } - /* - - Here we save the user id of the logged in user at the server Sessions map, from there it will - be used to validate any further transaction comming from this same user. - - */ - - global.Sessions.set(encodedToken, user.id) - callBackFunction(global.DEFAULT_OK_RESPONSE, { authId: authId, alias: user.alias }) return } @@ -460,15 +451,6 @@ function authenticate (encodedToken, callBackFunction) { if (global.INFO_LOG === true) { logger.debug('[INFO] ' + MODULE_NAME + ' -> authenticate -> onValidated -> onUserFound -> onSaved -> Saved User: ' + JSON.stringify(savedUser)) } - /* - - Here we save the user id of the logged in user at the server Sessions map, from there it will - be used to validate any further transaction comming from this same user. - - */ - - global.Sessions.set(encodedToken, savedUser.id) - callBackFunction(global.DEFAULT_OK_RESPONSE, { authId, alias }) } }