From c61681997a2ff1b4eeb8d5a61bc068fae191a1c4 Mon Sep 17 00:00:00 2001 From: Chris Blanchard Date: Mon, 31 Aug 2015 16:01:57 +0100 Subject: [PATCH] Random user on flag --- config/socketio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/socketio.js b/config/socketio.js index 4adb042..2ce5d25 100644 --- a/config/socketio.js +++ b/config/socketio.js @@ -35,7 +35,7 @@ module.exports = io => { } if (!session || typeof session.user !== 'number') { - if (env === 'staging') { + if (process.env.RANDOM_USER) { return assignRandomUser(socket, next); } else { return next(new Error("Authentication Failed"));