X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2F05_Authentication.pod;h=1ef68d3509fd89d94e72a40d9e4707f02a64d377;hp=d8d13cae15bd9a8f795802318fb83f33ef604430;hb=b6ff405087e1a619102a398d889a2bbf785d3015;hpb=3ce71ea74b728526f61ca42289175323bc5b5360 diff --git a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod index d8d13ca..1ef68d3 100644 --- a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod +++ b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod @@ -374,7 +374,8 @@ and update the definition of C 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