blib/lib/OpusVL/AppKit/TraitFor/Controller/Login/SetHomePageFlag.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« blib/lib/OpusVL/AppKit/TraitFor/Controller/Login/NewSessionIdOnLogin.pm ↑ Summary blib/lib/OpusVL/AppKit/View/Excel.pm »
1 package OpusVL::AppKit::TraitFor::Controller::Login::SetHomePageFlag;
2  
3 11 ▶use MooseX::MethodAttributes::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 11 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 11 requires qw/
7 login
8 login_form_stash_key
9 /;
10  
11 after 'login' => sub {
12 19 ▶ my ( $self, $ctx ) = @_;
Subroutine __ANON__: called CC=1 SCAR=0.0
13  
14 19 $ctx->stash->{homepage} = 1;
15 11 };
16  
17 11 1;
18  
19 __END__
20  
21 =pod
22  
23 =encoding UTF-8
24  
25 =head1 NAME
26  
27 OpusVL::AppKit::TraitFor::Controller::Login::SetHomePageFlag
28  
29 =head1 VERSION
30  
31 version 2.24
32  
33 =head1 DESCRIPTION
34  
35 Simple controller role to allow make the homepage logo visible on
36 the login page of AppKit applications.
37  
38 =head1 NAME
39  
40 OpusVL::AppKit::TraitFor::Controller::Login::SetHomePageFlag
41  
42 =head1 METHODS
43  
44 =head2 after 'login'
45  
46 $ctx->stash->{ homepage => 1 };
47  
48 =head1 SEE ALSO
49  
50 =over
51  
52 =item L<CatalystX::SimpleLogin::ControllerRole::Login>
53  
54 =back
55  
56 =head1 AUTHOR
57  
58 OpusVL - www.opusvl.com
59  
60 =head1 COPYRIGHT AND LICENSE
61  
62 This software is copyright (c) 2010 by OpusVL - www.opusvl.com.
63  
64 This is free software; you can redistribute it and/or modify it under
65 the same terms as the Perl 5 programming language system itself.
66  
67 =cut
« blib/lib/OpusVL/AppKit/TraitFor/Controller/Login/NewSessionIdOnLogin.pm ↑ Summary blib/lib/OpusVL/AppKit/View/Excel.pm »