From: Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 Date: Tue, 15 Feb 2011 15:02:56 +0000 (+0100) Subject: RT #62095: persistent message on /login X-Git-Tag: v5.8006~15 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=commitdiff_plain;h=b6ff405087e1a619102a398d889a2bbf785d3015 RT #62095: persistent message on /login https://rt.cpan.org/Ticket/Display.html?id=62095 --- 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