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

Fixes Intel AMT MEI calls.

This commit is contained in:
Ylian Saint-Hilaire 2020-11-24 19:56:59 -08:00
parent 608c1f0d98
commit 39541f8755
10 changed files with 48 additions and 34 deletions

5
db.js
View file

@ -1604,8 +1604,9 @@ module.exports.CreateDB = function (parent, func) {
mesh.nolog = 1;
delete mesh.type;
delete mesh._id;
if (mesh.amt != null) {
if (delete mesh.amt.password != null) { mesh.amt.password = 1; } // Remove the Intel AMT password if present
if ((mesh.amt != null) && (mesh.amt.password != null)) {
mesh.amt = Object.assign({}, mesh.amt); // Shallow clone
if (mesh.amt.password != null) { mesh.amt.password = 1; } // Remove the Intel AMT password if present
}
parent.DispatchEvent(['*', mesh.meshid], obj, mesh);
}