mirror of https://github.com/ENSL/ensl_gathers.git
Random user on flag
This commit is contained in:
parent
87faeab649
commit
c61681997a
|
@ -35,7 +35,7 @@ module.exports = io => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!session || typeof session.user !== 'number') {
|
if (!session || typeof session.user !== 'number') {
|
||||||
if (env === 'staging') {
|
if (process.env.RANDOM_USER) {
|
||||||
return assignRandomUser(socket, next);
|
return assignRandomUser(socket, next);
|
||||||
} else {
|
} else {
|
||||||
return next(new Error("Authentication Failed"));
|
return next(new Error("Authentication Failed"));
|
||||||
|
|
Loading…
Reference in New Issue