|
|
@ -121,9 +121,9 @@ if (uriMatcher.match("/{context}/api/user/authenticate")) {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
userRoles = String(addUserFormData.userRoles).split(",");
|
|
|
|
userRoles = String(addUserFormData.userRoles).split(",");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (username.length < devicemgtProps.usernameLength) {
|
|
|
|
if (username.length < devicemgtProps.userValidationConfig.usernameLength) {
|
|
|
|
log.error("Username Must be between 1 and " + devicemgtProps.usernameLength + " characters long");
|
|
|
|
log.error("Username Must be between 1 and " + devicemgtProps.userValidationConfig.usernameLength + " characters long");
|
|
|
|
result = "Username Must be between 1 and " + devicemgtProps.usernameLength + " characters long";
|
|
|
|
result = "Username Must be between 1 and " + devicemgtProps.userValidationConfig.usernameLength + " characters long";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
result = userModule.addUser(username, firstname, lastname, emailAddress, userRoles);
|
|
|
|
result = userModule.addUser(username, firstname, lastname, emailAddress, userRoles);
|
|
|
|