mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-10 15:21:56 +00:00
Cleanup
This commit is contained in:
parent
aeb0910829
commit
1681414721
1 changed files with 0 additions and 5 deletions
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue