File Coverage

blib/lib/Kwiki/Users/Auth.pm
Criterion Covered Total %
statement 1 3 33.3
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 2 4 50.0


line stmt bran cond sub pod time code
1             package Kwiki::Users::Auth;
2 1     1   2632 use Kwiki::Users -Base;
  0            
  0            
3             our $VERSION = "0.02";
4              
5             const class_id => 'users';
6             const class_title => 'Kwiki users registered online';
7             const user_class => 'Kwiki::User::Auth';
8              
9             package Kwiki::User::Auth;
10             use base 'Kwiki::User';
11              
12             field 'name';
13             field 'email';
14              
15             sub set_user_name {
16             return unless $self->is_in_cgi;
17             my $users = $self->hub->session->load->param("users_auth");
18             $users && $users->{name} or return;
19             $self->name($self->utf8_decode($users->{name}));
20             $self->email($self->utf8_decode($users->{email}));
21             }
22              
23             package Kwiki::Users::Auth;
24              
25             =head1 NAME
26              
27             Kwiki::Users::Auth - Properl 'users_class' that works with Kwiki::UserName::Auth
28              
29             =head1 DESCRIPTION
30              
31             Please read the documentation in L.
32              
33             =head1 COPYRIGHT
34              
35             Copyright 2005 by Kang-min Liu .
36              
37             This program is free software; you can redistribute it and/or modify
38             it under the same terms as Perl itself.
39              
40             See
41