method => "request_password_reset",
api_name => "open-ils.actor.patron.password_reset.request",
signature => {
+ desc => "Generates a UUID token usable with the open-ils.actor.patron.password_reset.commit " .
+ "method for changing a user's password. The UUID token is distributed via A/T " .
+ "templates (i.e. email to the user).",
params => [
{ desc => 'user_id_type', type => 'string' },
{ desc => 'user_id', type => 'string' },
- ]
- },
+ ],
+ return => {desc => '1 on success, Event on error'}
+ }
);
sub request_password_reset {
my($self, $conn, $user_id_type, $user_id) = @_;
method => "commit_password_reset",
api_name => "open-ils.actor.patron.password_reset.commit",
signature => {
+ desc => "Checks a UUID token generated by the open-ils.actor.patron.password_reset.request method for " .
+ "validity, and if valid, uses it as authorization for changing the associated user's password " .
+ "with the supplied password.",
params => [
{ desc => 'uuid', type => 'string' },
{ desc => 'password', type => 'string' },
- ]
- },
+ ],
+ return => {desc => '1 on success, Event on error'}
+ }
);
sub commit_password_reset {
my($self, $conn, $uuid, $password) = @_;