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=d2e0257ef181f9620c3b37bae514c50a1c3d8c97;hp=dc6e2bdd0d7cd9532843321b851c34295277b56b;hb=0ed3df53a9644cf30fe2a79828fd2e15044dbcd6;hpb=3c700304aa69d7d4744523fa1f264a2e07c4315c diff --git a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod index dc6e2bd..d2e0257 100644 --- a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod +++ b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod @@ -370,15 +370,15 @@ and update the definition of C to match: return; } else { # Set an error message - $c->stash->{error_msg} = "Bad username or password."; + $c->stash(error_msg => "Bad username or password."); } } else { # Set an error message - $c->stash->{error_msg} = "Empty username or password."; + $c->stash(error_msg => "Empty username or password."); } # If either of above don't work out, send to the login page - $c->stash->{template} = 'login.tt2'; + $c->stash(template => 'login.tt2'); } Be sure to remove the