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 9 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 9 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 9 ▶BEGIN { extends 'Catalyst::Controller::HTML::FormFu'; };
Subroutine BEGIN: called CC=1 SCAR=0.0
7 9 with 'OpusVL::AppKit::RolesFor::Controller::GUI';
8  
9 9 __PACKAGE__->config
10 (
11 appkit_myclass => 'OpusVL::AppKit',
12 );
13  
14  
15 sub change_password
16 : Path('changepword')
17 : Args(0)
18 : AppKitForm("appkit/user/change_password.yml")
19 : AppKitFeature('Password Change')
20 {
21 8 ▶ my ($self, $c ) = @_;
Subroutine change_password: called CC=2 SCAR=6.9
Pod documented
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 9 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
31  
32 __END__
33  
34 =pod
35  
36 =encoding UTF-8
37  
38 =head1 NAME
39  
40 OpusVL::AppKit::Controller::AppKit::User
41  
42 =head1 VERSION
43  
44 version 2.24
45  
46 =head2 change_password
47  
48 =head1 AUTHOR
49  
50 OpusVL - www.opusvl.com
51  
52 =head1 COPYRIGHT AND LICENSE
53  
54 This software is copyright (c) 2010 by OpusVL - www.opusvl.com.
55  
56 This is free software; you can redistribute it and/or modify it under
57 the same terms as the Perl 5 programming language system itself.
58  
59 =cut
« blib/lib/OpusVL/AppKit/Builder.pm ↑ Summary lib/OpusVL/AppKit/Controller/Search.pm »