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:
parent
4b10e225dd
commit
d2fae1d285
3 changed files with 239 additions and 221 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue