It's ->find_user($authinfo, $c), not ->find_user($c, $authinfo).
[catagits/Catalyst-Authentication-Realm-Adaptor.git] / lib / Catalyst / Authentication / Realm / Adaptor.pm
index d11b07f..ac40ce8 100644 (file)
@@ -106,9 +106,9 @@ sub find_user {
                 Catalyst::Exception->throw(__PACKAGE__ . " realm: " . $self->name . "'s store_adaptor is configured to use a code ref that doesn't exist");
             }
         }
-        return $self->SUPER::find_user($c, $newauthinfo);
+        return $self->SUPER::find_user($newauthinfo, $c);
     } else {
-        return $self->SUPER::find_user($c, $authinfo);
+        return $self->SUPER::find_user($authinfo, $c);
     }
 }