document the global 'login' caveat for C::P::Authentication::Credential::Password
Yuval Kogman [Fri, 30 Dec 2005 18:34:22 +0000 (18:34 +0000)]
lib/Catalyst/Plugin/Authentication/Credential/Password.pm

index 7ade966..288fd67 100644 (file)
@@ -123,6 +123,15 @@ with a password.
       Authentication::Credential::Password
       /;
 
+    package MyApp::Controller::Auth;
+
+    # *** NOTE ***
+    # if you place an action named 'login' in your application's root (as
+    # opposed to inside a controller) the following snippet will recurse,
+    # giving you lots of grief.
+    # never name actions in the root controller after plugin methods - use
+    # controllers and : Global instead.
+
     sub login : Local {
         my ( $self, $c ) = @_;