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

Added fetching previous Intel AMT activation passwords into table.

This commit is contained in:
Ylian Saint-Hilaire 2021-04-03 18:29:02 -07:00
parent d7bf871bca
commit 85ef5fca26
4 changed files with 60 additions and 1 deletions

View file

@ -294,6 +294,8 @@ module.exports.meshServerRightsArrayToNumber = function (val) {
return null;
}
// Sort an object by key
module.exports.sortObj = function (obj) { return Object.keys(obj).sort().reduce(function (result, key) { result[key] = obj[key]; return result; }, {}); }
// Validate an object to make sure it can be stored in MongoDB
module.exports.validateObjectForMongo = function (obj, maxStrLen) {