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

Real name fixes.

This commit is contained in:
Ylian Saint-Hilaire 2020-07-10 10:45:41 -07:00
parent 4b10e225dd
commit d2fae1d285
3 changed files with 239 additions and 221 deletions

View file

@ -1844,7 +1844,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
}
// Validate and change realm name
if (common.validateString(command.realname, 1, 256) && (chguser.realname != command.realname)) {
if (common.validateString(command.realname, 0, 256) && (chguser.realname != command.realname)) {
if (command.realname == '') { delete chguser.realname; } else { chguser.realname = command.realname; }
change = 1;
}