Fixed websocket auth issue.

This commit is contained in:
Ylian Saint-Hilaire 2018-10-15 17:25:50 -07:00
parent 5c5290dce2
commit ee51e74664
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.2.2-f",
"version": "0.2.2-g",
"keywords": [
"Remote Management",
"Intel AMT",

View File

@ -1865,7 +1865,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
// A default user is active
func(ws, req, domain, obj.users['user/' + domain.id + '/' + obj.args.user.toLowerCase()]);
return;
} else if (req.session && (req.session.userid != null) && (req.session.domainid == obj.domain.id)) {
} else if (req.session && (req.session.userid != null) && (req.session.domainid == domain.id)) {
// This user is logged in using the ExpressJS session
func(ws, req, domain, req.session.userid);
return;