RT #62095: persistent message on /login
Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 [Tue, 15 Feb 2011 15:02:56 +0000 (16:02 +0100)]
https://rt.cpan.org/Ticket/Display.html?id=62095

lib/Catalyst/Manual/Tutorial/05_Authentication.pod

index d8d13ca..1ef68d3 100644 (file)
@@ -374,7 +374,8 @@ and update the definition of C<sub index> to match:
             }
         } else {
             # Set an error message
-            $c->stash(error_msg => "Empty username or password.");
+            $c->stash(error_msg => "Empty username or password.")
+                unless ($c->user_exists);
         }
 
         # If either of above don't work out, send to the login page