API manager roles added

application-manager-new
ayyoob 10 years ago
parent 7b03db48ed
commit f1bc4007d2

@ -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,

Loading…
Cancel
Save