« lib/Reaction/UI/Widget/Field/Mutable/Boolean.pm
↑ Summary
lib/Reaction/UI/Controller/Collection/CRUD/Search.pm »
| 1 | package Reaction::InterfaceModel::Action::DBIC::User::Role::SetPassword; | ||
| 2 | |||
| 3 | 1 | ▶ | use Reaction::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 1 | ▶ | use namespace::clean -except => [ qw(meta) ]; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | |||
| 8 | #requires qw/target_model/; | ||
| 9 | 0 | ▶ | sub do_apply { |
|
Subroutine
do_apply: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 10 | 0 | my $self = shift; | |
| 11 | 0 | my $user = $self->target_model; | |
| 12 | 0 | $user->password($self->new_password); | |
| 13 | 0 | $user->update; | |
| 14 | 0 | return $user; | |
| 15 | }; | ||
| 16 | |||
| 17 | |||
| 18 | |||
| 19 | 1 | 1; | |
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Reaction::InterfaceModel::Action::DBIC::User::Role::SetPassword | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | =head2 meta | ||
| 28 | |||
| 29 | =head1 AUTHORS | ||
| 30 | |||
| 31 | See L<Reaction::Class> for authors. | ||
| 32 | |||
| 33 | =head1 LICENSE | ||
| 34 | |||
| 35 | See L<Reaction::Class> for the license. | ||
| 36 | |||
| 37 | =cut | ||