1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Added session disconnection log entries, #3437

This commit is contained in:
Ylian Saint-Hilaire 2022-01-10 17:42:54 -08:00
parent 188b6c1b7c
commit c14aba06d4
4 changed files with 20 additions and 12 deletions

View file

@ -1355,6 +1355,10 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
var loguser = parent.users[command.userid];
if (loguser) { event.userid = command.userid; event.username = loguser.name; targets.push(command.userid); }
}
if (typeof command.xuserid == 'string') {
var xloguser = parent.users[command.xuserid];
if (xloguser) { targets.push(command.xuserid); }
}
if ((typeof command.sessionid == 'string') && (command.sessionid.length < 500)) { event.sessionid = command.sessionid; }
parent.parent.DispatchEvent(targets, obj, event);
}