line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Password::Policy::Rule::Lowercase; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$Password::Policy::Rule::Lowercase::VERSION = '0.02'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
26132
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
40
|
|
7
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
28
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
903
|
use parent 'Password::Policy::Rule'; |
|
1
|
|
|
|
|
322
|
|
|
1
|
|
|
|
|
5
|
|
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
1170
|
use String::Multibyte; |
|
1
|
|
|
|
|
5093
|
|
|
1
|
|
|
|
|
56
|
|
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
648
|
use Password::Policy::Exception::InsufficientLowercase; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
135
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub check { |
16
|
7
|
|
|
7
|
0
|
183
|
my $self = shift; |
17
|
7
|
|
|
|
|
26
|
my $password = $self->prepare(shift); |
18
|
6
|
|
|
|
|
35
|
my @lowercase = ($password =~ m/[a-z]/g); |
19
|
6
|
|
|
|
|
12
|
my $count = scalar @lowercase; |
20
|
6
|
100
|
|
|
|
19
|
if($count < $self->arg) { |
21
|
3
|
|
|
|
|
18
|
Password::Policy::Exception::InsufficientLowercase->throw; |
22
|
|
|
|
|
|
|
} |
23
|
3
|
|
|
|
|
17
|
return 1; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=pod |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Password::Policy::Rule::Lowercase |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 VERSION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
version 0.02 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 AUTHOR |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Andrew Nelson |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
This software is copyright (c) 2012 by Andrew Nelson. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
49
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=cut |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
__END__ |