subjectManager.changePassword(subject, userName, newPassword);
// when we have arrived here, the password is changed.
// If this was a change of our own password, we need to re-login now
if (isSameUser) {
subjectManager.logout(subject.getSessionId());
}
return returnSuccess(request, mapping, ParamConstants.USER_PARAM,
pForm.getId());