X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FAuthentication.pod;h=499aa5346472935ed63cae375ff2be9b553b51a8;hp=590a51da1e4f4cb32fc77516c8cbd94c9c3deafc;hb=94d8da411a980c822af29da44d4cbf62a72c25c1;hpb=1390ef0ecd30a0dcfe59f212353ed81094fdf64a diff --git a/lib/Catalyst/Manual/Tutorial/Authentication.pod b/lib/Catalyst/Manual/Tutorial/Authentication.pod index 590a51d..499aa53 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 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 @@ -898,7 +898,7 @@ Kennedy Clark, C Please report any errors, issues or suggestions to the author. The most recent version of the Catalyst Tutorial can be found at -L. +L. Copyright 2006-2008, Kennedy Clark, under Creative Commons License (L).