add test::more prereq. add missing "if $c->debug"
Brian Cassidy [Fri, 26 Oct 2007 01:31:49 +0000 (01:31 +0000)]
Makefile.PL
lib/Catalyst/Plugin/Authentication/Credential/Password.pm

index fc4e6e2..3e88c0c 100644 (file)
@@ -13,5 +13,7 @@ requires 'Catalyst::Runtime';
 requires 'Class::Inspector';
 requires 'Catalyst::Plugin::Session' => '0.10';
 
+test_requires 'Test::More';
+
 auto_install;
 WriteAll;
index 960d9ff..570af27 100644 (file)
@@ -47,7 +47,7 @@ sub authenticate {
             return $user_obj;
         }
     } else {
-        $c->log->debug("Unable to locate user matching user info provided");
+        $c->log->debug("Unable to locate user matching user info provided") if $c->debug;
         return;
     }
 }