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:
parent
188b6c1b7c
commit
c14aba06d4
4 changed files with 20 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue