aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/InterfaceModel/Action/DBIC/User/Role/SetPassword.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Reaction/InterfaceModel/Action/DBIC/User/Role/SetPassword.pm')
-rw-r--r--lib/Reaction/InterfaceModel/Action/DBIC/User/Role/SetPassword.pm20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/Reaction/InterfaceModel/Action/DBIC/User/Role/SetPassword.pm b/lib/Reaction/InterfaceModel/Action/DBIC/User/Role/SetPassword.pm
index 0cd41a8..68c3895 100644
--- a/lib/Reaction/InterfaceModel/Action/DBIC/User/Role/SetPassword.pm
+++ b/lib/Reaction/InterfaceModel/Action/DBIC/User/Role/SetPassword.pm
@@ -2,20 +2,20 @@ package Reaction::InterfaceModel::Action::DBIC::User::Role::SetPassword;
use Reaction::Role;
-role SetPassword, which {
+use namespace::clean -except => [ qw(meta) ];
- #requires qw/target_model/;
-
- implements do_apply => as {
- my $self = shift;
- my $user = $self->target_model;
- $user->password($self->new_password);
- $user->update;
- return $user;
- };
+#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