Real name fixes.

This commit is contained in:
Ylian Saint-Hilaire 2020-07-10 10:45:41 -07:00
parent 9e9b8b8ab9
commit 993f1a17bf
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;
}

View File

@ -38,7 +38,10 @@
"express": "^4.17.0",
"express-handlebars": "^3.1.0",
"express-ws": "^4.0.0",
"html-minifier": "^4.0.0",
"ipcheck": "^0.1.0",
"jsdom": "^16.3.0",
"minify-js": "0.0.4",
"minimist": "^1.2.0",
"multiparty": "^4.2.1",
"nedb": "^1.8.0",

File diff suppressed because it is too large Load Diff