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=358c3988a11268a9954aca52dc6588c1f6c8bcbe;hp=aa0c38635ff692c1ded0f37f166a7946f2e5a7c0;hb=ddfbd8506f744fe1dc407bdaa7a1e9211b2dd1d7;hpb=c5b13dd3a313c85acce3bcdaf4d3f0251204c6b4 diff --git a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod index aa0c386..358c398 100644 --- a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod +++ b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod @@ -244,17 +244,17 @@ configuration (see below). Make sure you include the additional plugins as new dependencies in the Makefile.PL file something like this: - requires ( - 'Catalyst::Plugin::Authentication' => '0', - 'Catalyst::Plugin::Session' => '0', - 'Catalyst::Plugin::Session::Store::FastMmap' => '0', - 'Catalyst::Plugin::Session::State::Cookie' => '0', - ); + requires 'Catalyst::Plugin::Authentication'; + requires 'Catalyst::Plugin::Session'; + requires 'Catalyst::Plugin::Session::Store::FastMmap'; + requires 'Catalyst::Plugin::Session::State::Cookie'; Note that there are several options for L -(L -is generally a good choice if you are on Unix; try + +(L or +L is +generally a good choice if you are on Unix; try L if you are on Win32) -- consult L and its subclasses @@ -465,7 +465,7 @@ the following method: # Note that 'auto' runs after 'begin' but before your actions and that # 'auto's "chain" (all from application path to most specific class are run) # See the 'Actions' section of 'Catalyst::Manual::Intro' for more info. - sub auto : Private { + sub auto :Private { my ($self, $c) = @_; # Allow unauthenticated users to reach the login page. This @@ -627,7 +627,7 @@ includes EncodedColumn in the C line. Take a look at C since that's the main class where we want to use hashed and salted passwords: - __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp", "EncodedColumn", "Core"); + __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp", "EncodedColumn"); =head2 Modify the "password" Column to Use EncodedColumn @@ -845,7 +845,7 @@ C<__PACKAGE__-Econfig> setting to something like: __PACKAGE__->config( name => 'MyApp', - session => {flash_to_stash => 1}, + session => { flash_to_stash => 1 }, ); B add the following to C: