This commit is contained in:
Chris Blanchard 2015-08-27 15:02:17 +01:00
parent aeb0910829
commit 1681414721

View file

@ -36,17 +36,12 @@ module.exports = io => {
session = EnslClient.decodeSession(cookies[config.session_store_name]); session = EnslClient.decodeSession(cookies[config.session_store_name]);
} }
if (!session || typeof session.user !== 'number') { if (!session || typeof session.user !== 'number') {
// return next(new Error("Authentication Failed"));
/* Temporarily Allow Random Users in staging*/
if (env === 'staging') { if (env === 'staging') {
return assignRandomUser(socket, next); return assignRandomUser(socket, next);
} else { } else {
return next(new Error("Authentication Failed")); return next(new Error("Authentication Failed"));
} }
/****************************/
} }
client.getUserById({ client.getUserById({