From 1681414721b2a85e20c8aaa9bf949cef947c1154 Mon Sep 17 00:00:00 2001 From: Chris Blanchard Date: Thu, 27 Aug 2015 15:02:17 +0100 Subject: [PATCH] Cleanup --- config/socketio.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/config/socketio.js b/config/socketio.js index 380e245..7df3796 100644 --- a/config/socketio.js +++ b/config/socketio.js @@ -36,17 +36,12 @@ module.exports = io => { session = EnslClient.decodeSession(cookies[config.session_store_name]); } - if (!session || typeof session.user !== 'number') { - // return next(new Error("Authentication Failed")); - - /* Temporarily Allow Random Users in staging*/ if (env === 'staging') { return assignRandomUser(socket, next); } else { return next(new Error("Authentication Failed")); } - /****************************/ } client.getUserById({