|
|
|
@ -165,14 +165,12 @@ function resetPassword(username) {
|
|
|
|
|
var domain;
|
|
|
|
|
if (username.indexOf('/') > 0) {
|
|
|
|
|
domain = username.substr(0, username.indexOf('/'));
|
|
|
|
|
username = username.substr(username.indexOf('/')+1);
|
|
|
|
|
username = username.substr(username.indexOf('/') + 1);
|
|
|
|
|
}
|
|
|
|
|
var resetPasswordServiceURL = apiBasePath + "/admin/users/"+ username +"/credentials";
|
|
|
|
|
|
|
|
|
|
var resetPasswordServiceURL = apiBasePath + "/admin/users/" + username + "/credentials";
|
|
|
|
|
if (domain) {
|
|
|
|
|
resetPasswordServiceURL += '?domain=' + domain;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
invokerUtil.post(
|
|
|
|
|
resetPasswordServiceURL,
|
|
|
|
|
resetPasswordFormData,
|
|
|
|
@ -209,7 +207,7 @@ function removeUser(username) {
|
|
|
|
|
var domain;
|
|
|
|
|
if (username.indexOf('/') > 0) {
|
|
|
|
|
domain = username.substr(0, username.indexOf('/'));
|
|
|
|
|
username = username.substr(username.indexOf('/')+1);
|
|
|
|
|
username = username.substr(username.indexOf('/') + 1);
|
|
|
|
|
}
|
|
|
|
|
var removeUserAPI = apiBasePath + "/users/" + username;
|
|
|
|
|
if (domain) {
|
|
|
|
|