This commit is contained in:
Chris Blanchard 2015-08-27 15:02:17 +01:00
parent aeb0910829
commit 1681414721
1 changed files with 0 additions and 5 deletions

View File

@ -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({