mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-15 04:21:51 +00:00
Updated Windows Agents with cert regen on reintall.
This commit is contained in:
parent
38ac4bbbe9
commit
00225408c6
7 changed files with 6 additions and 4 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -393,10 +393,12 @@ function CreateMeshCentralServer(config, args) {
|
||||||
var existingUser = users[newobj._id];
|
var existingUser = users[newobj._id];
|
||||||
if (existingUser) {
|
if (existingUser) {
|
||||||
// Merge the links
|
// Merge the links
|
||||||
for (var j in newobj.links) {
|
if (typeof newobj.links == 'object') {
|
||||||
if ((existingUser.links == null) || (existingUser.links[j] == null)) {
|
for (var j in newobj.links) {
|
||||||
if (existingUser.links == null) { existingUser.links = {}; }
|
if ((existingUser.links == null) || (existingUser.links[j] == null)) {
|
||||||
existingUser.links[j] = newobj.links[j];
|
if (existingUser.links == null) { existingUser.links = {}; }
|
||||||
|
existingUser.links[j] = newobj.links[j];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (existingUser.name == 'admin') { existingUser.links = {}; }
|
if (existingUser.name == 'admin') { existingUser.links = {}; }
|
||||||
|
|
Loading…
Reference in a new issue