mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2025-01-31 13:30:37 +00:00
Fix failed user authentication
This commit is contained in:
parent
cf2fae0a42
commit
a3d6bc4f9d
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ module.exports = namespace => {
|
|||
User.find(id, (error, user) => {
|
||||
if (error) {
|
||||
winston.error(error);
|
||||
return next(new Error("Authentication failed"));
|
||||
return null;
|
||||
}
|
||||
socket._user = user;
|
||||
winston.info("Logged in:", user.username, user.id);
|
||||
|
|
Loading…
Reference in a new issue