NAME

RT::REST2::Resource::UserPassword - REST2 endpoint for user password updates

DESCRIPTION

Provides a REST2 resource for updating user passwords via PUT /user/:id/password.

METHODS

dispatch_rules

Returns the path dispatch rules matching /user/:id/password.

forbidden

Returns 1 if the current user lacks permission, 0 if permitted. Allowed when the user has AdminUsers right or is updating their own password.

resource_exists

Returns 1 if the target user exists, 0 otherwise.

allowed_methods

Returns ['PUT'].

content_types_provided

Returns application/json.

content_types_accepted

Returns application/json.

to_json

Returns a JSON response indicating the password resource is available.

from_json

Parses the JSON request body and updates the target user's password.