mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Server fixes, added locale arg in web app.
This commit is contained in:
parent
efa3f6e5cf
commit
67feb1422f
9 changed files with 144 additions and 102 deletions
4
db.js
4
db.js
|
@ -877,7 +877,9 @@ module.exports.CreateDB = function (parent, func) {
|
|||
for (var i in muser) { if (user[i] == null) { delete muser[i]; } }
|
||||
|
||||
// Send the user update
|
||||
parent.DispatchEvent(['*', 'server-users', user._id], obj, { etype: 'user', username: user.name, account: parent.webserver.CloneSafeUser(user), action: (added ? 'accountcreate' : 'accountchange'), domain: user.domain, nolog: 1 });
|
||||
var targets = ['*', 'server-users', user._id];
|
||||
if (user.groups) { for (var i in user.groups) { targets.push('server-users:' + i); } }
|
||||
parent.DispatchEvent(targets, obj, { etype: 'user', username: user.name, account: parent.webserver.CloneSafeUser(user), action: (added ? 'accountcreate' : 'accountchange'), domain: user.domain, nolog: 1 });
|
||||
}
|
||||
|
||||
return obj;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue