From 14470a1de322bc167cbd13600386f9cb63506ce3 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Fri, 7 Jun 2019 11:10:04 -0700 Subject: [PATCH] Lost of small fixes. --- meshuser.js | 2 +- package.json | 2 +- views/default-min.handlebars | 33 ++++++++++++++++++++++----------- views/default.handlebars | 30 ++++++++++++++++++++---------- 4 files changed, 44 insertions(+), 23 deletions(-) diff --git a/meshuser.js b/meshuser.js index 4ce979a3..4fb4fb2b 100644 --- a/meshuser.js +++ b/meshuser.js @@ -54,7 +54,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use if (obj.serverStatsTimer != null) { clearInterval(obj.serverStatsTimer); delete obj.serverStatsTimer; } if (req.session && req.session.ws && req.session.ws == ws) { delete req.session.ws; } if (parent.wssessions2[ws.sessionId]) { delete parent.wssessions2[ws.sessionId]; } - if (parent.wssessions[obj.user._id]) { + if ((obj.user != null) && (parent.wssessions[obj.user._id])) { var i = parent.wssessions[obj.user._id].indexOf(ws); if (i >= 0) { parent.wssessions[obj.user._id].splice(i, 1); diff --git a/package.json b/package.json index 025f51c6..4689b154 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.3.6-e", + "version": "0.3.6-f", "keywords": [ "Remote Management", "Intel AMT", diff --git a/views/default-min.handlebars b/views/default-min.handlebars index fc4479b8..94f87311 100644 --- a/views/default-min.handlebars +++ b/views/default-min.handlebars @@ -1,4 +1,4 @@ - {{{title}}}
{{{title}}}
{{{title2}}}

{{{logoutControl}}}

 

{{{title}}}
{{{title}}}
{{{title2}}}

{{{logoutControl}}}