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=8a7ec0648d705aeff66398204604259545f9e8b9;hp=dc6e2bdd0d7cd9532843321b851c34295277b56b;hb=4768184b3b277399116fbd53cae3697a9767fee5;hpb=3c700304aa69d7d4744523fa1f264a2e07c4315c diff --git a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod index dc6e2bd..8a7ec06 100644 --- a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod +++ b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod @@ -205,7 +205,7 @@ objects in the startup debug output: | MyApp::Model::DB::Role | class | | MyApp::Model::DB::User | class | | MyApp::Model::DB::UserRole | class | - | MyApp::View::TT | instance | + | MyApp::View::HTML | instance | '-------------------------------------------------------------------+----------' ... @@ -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 @@ -649,8 +650,6 @@ the closing "1;": # with hex encoding; Generate the 'check_password" method __PACKAGE__->add_columns( 'password' => { - data_type => "TEXT", - size => undef, encode_column => 1, encode_class => 'Digest', encode_args => {salt_length => 10}, @@ -885,5 +884,5 @@ Please report any errors, issues or suggestions to the author. The most recent version of the Catalyst Tutorial can be found at L. -Copyright 2006-2008, Kennedy Clark, under Creative Commons License +Copyright 2006-2010, Kennedy Clark, under Creative Commons License (L).