mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added support for email 2FA in MeshCentral Router.
This commit is contained in:
parent
2ca9ea9ed4
commit
d089062167
3 changed files with 33 additions and 5 deletions
|
@ -2848,6 +2848,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||
// Event the node change. Only do this if the database will not do it.
|
||||
event.msg = 'Changed device ' + node.name + ' from group ' + mesh.name + ': ' + changes.join(', ');
|
||||
event.node = parent.CloneSafeNode(node);
|
||||
if (command.rdpport == 3389) { event.node.rdpport = 3389; }
|
||||
if (db.changeStream) { event.noact = 1; } // If DB change stream is active, don't use this event to change the node. Another event will come.
|
||||
parent.parent.DispatchEvent(['*', node.meshid, user._id, node._id], obj, event);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue