r34155@cain (orig r5598): jayk | 2006-11-27 08:21:47 +0000
[catagits/Catalyst-Plugin-Authentication.git] / lib / Catalyst / Plugin / Authentication / Credential / Password.pm
index 0a161fc..329197d 100644 (file)
@@ -28,7 +28,7 @@ sub authenticate {
     my ( $self, $c, $authstore, $authinfo ) = @_;
 
     my $user_obj = $authstore->find_user($authinfo, $c);
-    if ($user_obj) {
+    if (ref($user_obj)) {
         if ($self->check_password($user_obj, $authinfo)) {
             return $user_obj;
         }