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