|
|
@ -59,14 +59,14 @@ if (uriMatcher.match("/{context}/api/user/login/")) {
|
|
|
|
emailAddress = addUserFormData.emailAddress;
|
|
|
|
emailAddress = addUserFormData.emailAddress;
|
|
|
|
password = addUserFormData.password;
|
|
|
|
password = addUserFormData.password;
|
|
|
|
|
|
|
|
|
|
|
|
if (!addUserFormData.userRoles) {
|
|
|
|
|
|
|
|
userRoles = null;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
userRoles = String(addUserFormData.userRoles).split(",");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//enable internal subscriptions for APIM
|
|
|
|
//enable internal subscriptions for APIM
|
|
|
|
userRoles = userRoles + ", Internal/subscriber, Internal/everyone";
|
|
|
|
userRoleStr = "Internal/subscriber,Internal/everyone" ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
userRoles = String(userRoleStr).split(",");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
result = userModule.registerUser(username, firstname, lastname, emailAddress, password,
|
|
|
|
result = userModule.registerUser(username, firstname, lastname, emailAddress, password,
|
|
|
|