X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FAuthentication.pod;h=9c7b766daafb71cfe92da473ac3113eb7dafbd39;hb=4feda61c517ea54dad037929f731f5db35fe9617;hp=cb61aea0860f3674f0869a7ffa2778130922892e;hpb=82ab4bbf7fc1c88e5c23821a9cc304c69d0aaf09;p=catagits%2FCatalyst-Manual.git diff --git a/lib/Catalyst/Manual/Tutorial/Authentication.pod b/lib/Catalyst/Manual/Tutorial/Authentication.pod index cb61aea..9c7b766 100644 --- a/lib/Catalyst/Manual/Tutorial/Authentication.pod +++ b/lib/Catalyst/Manual/Tutorial/Authentication.pod @@ -139,10 +139,10 @@ Notice how the helper has added three new table-specific result source files to the C directory. And, more importantly, even if there were changes to the existing result source files, those changes would have only been written above the C<# DO NOT -MODIFY THIS OR ANYTHING ABOVE!> comment and your hand-editted +MODIFY THIS OR ANYTHING ABOVE!> comment and your hand-edited enhancements would have been preserved. -Speaking of "hand-editted enhancements," we should now add +Speaking of "hand-edit ted enhancements," we should now add relationship information to the three new result source files. Edit each of these files and add the following information between the C<# DO NOT MODIFY THIS OR ANYTHING ABOVE!> comment and the closing C<1;>: @@ -266,6 +266,10 @@ C is new): Session::State::Cookie /); +B As discussed in MoreCatalystBasics, different versions of +C have used a variety of methods to load the plugins. +You can put the plugins in the C statement if you prefer. + The C plugin supports Authentication while the C plugins are required to maintain state across multiple HTTP requests. @@ -366,12 +370,8 @@ such matters up to you, the designer and programmer. Then open C, locate the C method (or C if you are using an older version of Catalyst) that was automatically inserted by the -helpers when we created the Login controller above, and delete this -line: - - $c->response->body('Matched MyApp::Controller::Login in Login.'); - -Then update it to match: +helpers when we created the Login controller above, and update the +definition of C to match: =head2 index @@ -501,7 +501,7 @@ the following method: my ($self, $c) = @_; # Allow unauthenticated users to reach the login page. This - # allows anauthenticated users to reach any action in the Login + # allows unauthenticated users to reach any action in the Login # controller. To lock it down to a single action, we could use: # if ($c->action eq $c->controller('Login')->action_for('index')) # to only allow unauthenticated access to the 'index' action we