Jifty/Plugin/Authentication/Password/Action/Logout.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
arguments
2.0
take_action
2.0
BEGIN
2.0
CRAP 2.0
1 use warnings;
2 use strict;
3  
4 =head1 NAME
5  
6 Jifty::Plugin::Authentication::Password::Action::Logout - process logout
7  
8 =cut
9  
10 package Jifty::Plugin::Authentication::Password::Action::Logout;
11 use base qw/Jifty::Action/;
12  
13 =head2 arguments
14  
15 Return the email and password form fields
16  
17 =cut
18  
19 sub arguments {
20 return ( {} );
21 }
22  
23 =head2 take_action
24  
25 Nuke the current user object
26  
27 =cut
28  
29 sub take_action {
30 my $self = shift;
31 Jifty->web->current_user(undef);
32 return 1;
33 }
34  
35 1;