RT #62095: persistent message on /login
[catagits/Catalyst-Manual.git] / 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