From: Marius Gavrilescu Date: Sat, 13 Jun 2015 10:36:30 +0000 (+0300) Subject: Fix experimental warnings X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;ds=sidebyside;h=804310f692e98c8d5c09e697deebe2e715411c49;p=apache2-authen-passphrase.git Fix experimental warnings --- diff --git a/lib/Apache2/Authen/Passphrase.pm b/lib/Apache2/Authen/Passphrase.pm index 612e605..5debb55 100644 --- a/lib/Apache2/Authen/Passphrase.pm +++ b/lib/Apache2/Authen/Passphrase.pm @@ -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