lib/OpusVL/AppKit/Controller/AppKit/User.pm

filter: Statementstmt 100% 17 / 17 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 25 / 25 CC 2 SCAR 2.9
CC
2
Cov
100%
change_password
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/OpusVL/AppKit/Builder.pm ↑ Summary lib/OpusVL/AppKit/Controller/Search.pm »
1 package OpusVL::AppKit::Controller::AppKit::User;
2  
3 8 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 8 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 8 ▶BEGIN { extends 'Catalyst::Controller::HTML::FormFu'; };
Subroutine BEGIN: called CC=1 SCAR=0.0
7 8 with 'OpusVL::AppKit::RolesFor::Controller::GUI';
8  
9 8 __PACKAGE__->config
10 (
11 appkit_myclass => 'OpusVL::AppKit',
12 );
13  
14  
15 sub change_password
16 8 ▶ : Path('changepword')
Subroutine change_password: called CC=2 SCAR=6.9
Pod documented
17 : Args(0)
18 : AppKitForm("appkit/user/change_password.yml")
19 : AppKitFeature('Password Change')
20 {
21 8 my ($self, $c ) = @_;
22  
23 8 ▶ if ( $c->stash->{form}->submitted_and_valid )
Branch: 1 branch
BranchTrueFalseTotal
if ($c->stash->{"form"}->submitted_and_valid) 1 7 8
24 {
25 1 my $password = $c->req->params->{'password'};
26  
27 1 $c->user->update( { password => $password } );
28 1 $c->stash->{hide_form} = 1;
29 }
30 8 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
31  
32 __END__
« blib/lib/OpusVL/AppKit/Builder.pm ↑ Summary lib/OpusVL/AppKit/Controller/Search.pm »