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

Fixed account delete issues

This commit is contained in:
Ylian Saint-Hilaire 2018-05-17 13:37:50 -07:00
parent 8580f54861
commit cda8a54b0b
3 changed files with 22 additions and 1 deletions

View file

@ -558,6 +558,9 @@ module.exports.CreateWebServer = function (parent, db, args, secret, certificate
}
}
// Remove notes for this user
obj.db.Remove('nt' + user._id);
// Remove the user
obj.db.Remove(user._id);
delete obj.users[user._id];