mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 19:11:51 +00:00
Fixed websocket auth issue.
This commit is contained in:
parent
fc03f1ce1d
commit
61c38a9f1a
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "meshcentral",
|
"name": "meshcentral",
|
||||||
"version": "0.2.2-f",
|
"version": "0.2.2-g",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Remote Management",
|
"Remote Management",
|
||||||
"Intel AMT",
|
"Intel AMT",
|
||||||
|
|
|
@ -1865,7 +1865,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
|
||||||
// A default user is active
|
// A default user is active
|
||||||
func(ws, req, domain, obj.users['user/' + domain.id + '/' + obj.args.user.toLowerCase()]);
|
func(ws, req, domain, obj.users['user/' + domain.id + '/' + obj.args.user.toLowerCase()]);
|
||||||
return;
|
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
|
// This user is logged in using the ExpressJS session
|
||||||
func(ws, req, domain, req.session.userid);
|
func(ws, req, domain, req.session.userid);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue