]> iEval git - apache2-authen-passphrase.git/blobdiff - lib/Apache2/Authen/Passphrase.pm
Bump version and update Changes
[apache2-authen-passphrase.git] / lib / Apache2 / Authen / Passphrase.pm
index d2be6625e24e91abd3686f283749595821bb0441..229ff7925f63d6b825cadd7755cd4872ba407279 100644 (file)
@@ -6,7 +6,7 @@ use warnings;
 use parent qw/Exporter/;
 use subs qw/OK HTTP_UNAUTHORIZED/;
 
-our $VERSION = 0.002001;
+our $VERSION = 0.002002;
 
 use constant USER_REGEX => qr/^\w{2,20}$/pas;
 use constant PASSPHRASE_VERSION => 1;
@@ -59,7 +59,7 @@ sub pwcheck{
        my $conf=LoadFile "$rootdir/$user.yml";
 
        ## no critic (RequireCarping)
-       die BAD_PASSWORD unless keys $conf;          # Empty hash means no such user
+       die BAD_PASSWORD unless keys %$conf;          # Empty hash means no such user
        die BAD_PASSWORD unless Authen::Passphrase->from_rfc2307($conf->{passphrase})->match($pass);
        ## use critic
        pwset $user, $pass if $conf->{passphrase_version} < PASSPHRASE_VERSION
@@ -178,7 +178,7 @@ Marius Gavrilescu, E<lt>marius@ieval.roE<gt>
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright (C) 2013 by Marius Gavrilescu
+Copyright (C) 2013-2015 by Marius Gavrilescu
 
 This library is free software; you can redistribute it and/or modify
 it under the same terms as Perl itself, either Perl version 5.14.2 or,
This page took 0.023368 seconds and 4 git commands to generate.