Reaction::InterfaceModel::Action::DBIC::User::Role::SetPassword - Reaction::InterfaceModel::Action::DBIC::User::Role::SetPassword documentation


Reaction documentation Contained in the Reaction distribution.

Index


Code Index:

NAME

Top

Reaction::InterfaceModel::Action::DBIC::User::Role::SetPassword

DESCRIPTION

Top

meta

AUTHORS

Top

See Reaction::Class for authors.

LICENSE

Top

See Reaction::Class for the license.


Reaction documentation Contained in the Reaction distribution.

package Reaction::InterfaceModel::Action::DBIC::User::Role::SetPassword;

use Reaction::Role;

use namespace::clean -except => [ qw(meta) ];


#requires qw/target_model/;
sub do_apply {
  my $self = shift;
  my $user = $self->target_model;
  $user->password($self->new_password);
  $user->update;
  return $user;
};



1;