1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Made use of AMT user/pass provided by MeshCMD in amtconfig.

This commit is contained in:
Ylian Saint-Hilaire 2021-07-14 08:30:55 -07:00
parent 7b6fbaf107
commit ab85ec9a3d
2 changed files with 11 additions and 6 deletions

View file

@ -600,8 +600,8 @@ module.exports.CreateMpsServer = function (parent, db, args, certificates) {
}
if (obj.parent.webserver.meshes[cookie.m] == null) {
meshNotFoundCount++;
socket.ControlMsg({ action: 'console', msg: 'Device group not found' });
parent.debug('mps', 'Device group not found', username, password);
socket.ControlMsg({ action: 'console', msg: 'Device group not found (1)' });
parent.debug('mps', 'Device group not found (1)', username, password);
SendUserAuthFail(socket);
return -1;
}
@ -645,8 +645,8 @@ module.exports.CreateMpsServer = function (parent, db, args, certificates) {
}
if (mesh == null) {
meshNotFoundCount++;
socket.ControlMsg({ action: 'console', msg: 'Device group not found' });
parent.debug('mps', 'Device group not found', username, password);
socket.ControlMsg({ action: 'console', msg: 'Device group not found (2)' });
parent.debug('mps', 'Device group not found (2)', username, password);
SendUserAuthFail(socket);
return -1;
}