X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2F05_Authentication.pod;h=6cc0c592e4d2a4e50ba9f5394a4529fe99bafe78;hb=bbdce044f1df0dfb5fb12f826e95d9e69726df85;hp=617f163913291aeddcf2cdec869850769719d2f6;hpb=ec3ef4ad2ba72cc751c8c5eccccb705602d87d09;p=catagits%2FCatalyst-Manual.git diff --git a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod index 617f163..6cc0c59 100644 --- a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod +++ b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod @@ -99,7 +99,7 @@ C in your editor and insert: role TEXT ); CREATE TABLE user_role ( - user_id INTEGER REFERENCES user(id) ON DELETE CASCADE ON UPDATE CASCADE, + user_id INTEGER REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE, role_id INTEGER REFERENCES role(id) ON DELETE CASCADE ON UPDATE CASCADE, PRIMARY KEY (user_id, role_id) ); @@ -229,7 +229,7 @@ C is new): Authentication Session - Session::Store::FastMmap + Session::Store::File Session::State::Cookie /; @@ -254,16 +254,15 @@ the Makefile.PL file something like this: requires 'Catalyst::Plugin::Authentication'; requires 'Catalyst::Plugin::Session'; - requires 'Catalyst::Plugin::Session::Store::FastMmap'; + requires 'Catalyst::Plugin::Session::Store::File'; requires 'Catalyst::Plugin::Session::State::Cookie'; Note that there are several options for L. -L or -L is +L is generally a good choice if you are on Unix. If you are running on -Windows, try -L. Consult +Windows +L is fine. Consult L and its subclasses for additional information and options (for example to use a database- backed session store). @@ -553,7 +552,7 @@ use of an IF-THEN-ELSE construct in TT). =head2 Try Out Authentication The development server should have reloaded each time we edited one of -the Controllers in the previous section. Now trying going to +the Controllers in the previous section. Now try going to L and you should be redirected to the login page, hitting Shift+Reload or Ctrl+Reload if necessary (the "You are already logged in" message should I appear -- if it does, click @@ -699,7 +698,7 @@ C in your editor and enter the following text: $user->update; } -EncodedColumn lets us simple call C<$user->check_password($password)> +EncodedColumn lets us simply call C<$user->check_password($password)> to see if the user has supplied the correct password, or, as we show above, call C<$user->update($new_password)> to update the hashed password stored for this user.