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

Improved DB records encryption support.

This commit is contained in:
Ylian Saint-Hilaire 2019-10-03 13:32:54 -07:00
parent a34d4385a3
commit 5af831a0aa
5 changed files with 33 additions and 11 deletions

View file

@ -2570,7 +2570,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
actionText = 'New 2FA backup codes generated.';
} else if (command.subaction == 2) { // Clear all tokens
actionTaken = (user.otpkeys != null);
user.otpkeys = null;
delete user.otpkeys;
if (actionTaken) { actionText = '2FA backup codes cleared.'; }
}