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=bf47ad60352fe093341dbd54c4517c0bbac22e53;hp=dc6e2bdd0d7cd9532843321b851c34295277b56b;hb=1edbdee6a1bad3524a3d97c6daaae02b5109c1d2;hpb=3c700304aa69d7d4744523fa1f264a2e07c4315c diff --git a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod index dc6e2bd..bf47ad6 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},