aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/InterfaceModel/Action/DBIC/User/Role/SetPassword.pm
blob: 0665d5fe3ccd7159f959d8e54705b3e56fe60f59 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;

=head1 NAME

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

=head1 DESCRIPTION

=head2 meta

=head1 AUTHORS

See L<Reaction::Class> for authors.

=head1 LICENSE

See L<Reaction::Class> for the license.

=cut