mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-09 21:49:43 -05:00
Real name fixes.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user