diff --git a/modules/distribution/src/repository/jaggeryapps/iot/api/user-api.jag b/modules/distribution/src/repository/jaggeryapps/iot/api/user-api.jag index 42066cdc..65b8186e 100644 --- a/modules/distribution/src/repository/jaggeryapps/iot/api/user-api.jag +++ b/modules/distribution/src/repository/jaggeryapps/iot/api/user-api.jag @@ -59,12 +59,18 @@ if (uriMatcher.match("/{context}/api/user/login/")) { emailAddress = addUserFormData.emailAddress; password = addUserFormData.password; - if (!addUserFormData.userRoles) { - userRoles = null; - } else { - userRoles = String(addUserFormData.userRoles).split(","); - } +<<<<<<< HEAD +======= + //enable internal subscriptions for APIM + userRoleStr = "Internal/subscriber,Internal/everyone" ; + + userRoles = String(userRoleStr).split(","); + + + + +>>>>>>> f1bc4007d286384b865705772c640b09b10607d7 try { result = userModule.registerUser(username, firstname, lastname, emailAddress, password, userRoles);