02-14-2011 08:01 AM
02-21-2011 10:58 AM
ERROR [extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 01210001 Do not have appropriate auth or wrong auth
details provided.
org.springframework.extensions.webscripts.WebScriptException: 01210001 Do not have appropriate auth or wrong auth details provided.
at org.alfresco.repo.web.scripts.person.ChangePasswordPost.executeImpl(ChangePasswordPost.java:120)
02-21-2011 11:01 AM
03-21-2011 01:39 PM
// perform the REST API to change the user password
var params = new Array(2);
params["oldpw"] = oldpass;
params["newpw"] = newpass1;
var connector = remote.connect("alfresco");
var result = connector.post(
"/api/person/changepassword/" + stringUtils.urlEncode(user.name),
jsonUtils.toJSONString(params),
"application/json");
if (result == ""){
model.success = false;
model.errormsg = "Password was NOT changed, reenter old passsword and try again";
}
else
{
var repoJSON = eval('(' + result + ')');
if (repoJSON.success !== undefined)
{
model.success = repoJSON.success;
}
else
{
model.success = false;
model.errormsg = "Password was NOT changed, reenter old passsword and try again";
}
}
}
else
{
model.success = false;
model.errormsg = "New password and confirm password do not match, please retry the changes";
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.