mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fixed account name in device sessions.
This commit is contained in:
parent
9b7dfff4b1
commit
4b52e0269d
2 changed files with 4 additions and 2 deletions
|
@ -1610,6 +1610,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
|
|||
// Add the user's real name if present
|
||||
var u = parent.users[command.userid];
|
||||
if (u == null) return;
|
||||
if (u.name) { command.name = u.name; }
|
||||
if (u.realname) { command.realname = u.realname; }
|
||||
|
||||
// An agent can only request images of accounts with rights to the device.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue