API manager roles added

merge-requests/1/head
ayyoob 10 years ago
parent 7b03db48ed
commit f1bc4007d2

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

Loading…
Cancel
Save