Class ChangeUserPasswordServlet

All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, ChangeUserPassword

public class ChangeUserPasswordServlet extends AbstractAuthorizablePostServlet implements ChangeUserPassword

Changes the password associated with a user.

Maps on to nodes of resourceType sling/user like /rep:system/rep:userManager/rep:users/ae/fd/3e/ieb mapped to a resource url /system/userManager/user/ieb. This servlet responds at /system/userManager/user/ieb.changePassword.html

Methods

  • POST

Post Parameters

oldPwd
The current password for the user (required for non-administrators)
newPwd
The new password for the user (required)
newPwdConfirm
The confirm new password for the user (required)

Response

200
Success sent with no body
404
If the user was not found.
500
Failure, including password validation errors. HTML explains the failure.

Example

curl -FoldPwd=oldpassword -FnewPwd=newpassword -FnewPwdConfirm=newpassword http://localhost:8080/system/userManager/user/ieb.changePassword.html

Notes

See Also: