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=158372e7c9aa490a918c1ee8691a7600b43e1cb6;hp=dc6e2bdd0d7cd9532843321b851c34295277b56b;hb=aa7ff3257b8cc635010cfa8caee47a45efcab1f6;hpb=3c700304aa69d7d4744523fa1f264a2e07c4315c diff --git a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod index dc6e2bd..158372e 100644 --- a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod +++ b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod @@ -223,11 +223,11 @@ C is new): -Debug ConfigLoader Static::Simple - + StackTrace - + Authentication - + Session Session::Store::FastMmap Session::State::Cookie @@ -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 @@ -585,6 +585,7 @@ box instead of using NTP. Open C and add the following lines to the bottom (below the closing tag): + ...

Login Create