mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-24 06:05:53 -05:00
Fixed websocket auth issue.
This commit is contained in:
parent
5c5290dce2
commit
ee51e74664
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "meshcentral",
|
||||
"version": "0.2.2-f",
|
||||
"version": "0.2.2-g",
|
||||
"keywords": [
|
||||
"Remote Management",
|
||||
"Intel AMT",
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user