Random user on flag

This commit is contained in:
Chris Blanchard 2015-08-31 16:01:57 +01:00
parent 87faeab649
commit c61681997a

View file

@ -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"));