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
|
@ -4686,7 +4686,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||
const splitxuser = command.xuserid.split('/');
|
||||
var xusername = splitxuser[2];
|
||||
if (command.guestname != null) { xusername += '/' + command.guestname; }
|
||||
var event = { etype: 'user', userid: user._id, username: user.name, nodeid: command.nodeid, xuserid: command.xuserid, action: 'endsession', msgid: 134, msgArgs: [xusername], msg: 'Disconnected desktop session of user ' + xusername, domain: domain.id };
|
||||
var event = { etype: 'user', userid: user._id, username: user.name, nodeid: command.nodeid, xuserid: command.xuserid, action: 'endsession', msgid: 134, msgArgs: [xusername], msg: 'Forcibly disconnected desktop session of user ' + xusername, domain: domain.id };
|
||||
if (command.guestname != null) { event.guestname = command.guestname; }
|
||||
if (db.changeStream) { event.noact = 1; } // If DB change stream is active, don't use this event to change the user. Another event will come.
|
||||
parent.parent.DispatchEvent(targets, obj, event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue