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=024a9f94156b216f96ef3a71c5cde425ee04b10d;hp=5e0efbfed1b6ad838be5710ffdeb5621f76bc0c4;hb=b6e53c1ca5bfa271bfce99e0f42a56c8fd4df4be;hpb=b1b6582a2c886a0ae462b778150b2d2a358e1fd9 diff --git a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod index 5e0efbf..024a9f9 100644 --- a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod +++ b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod @@ -63,7 +63,7 @@ L). This chapter of the tutorial is divided into two main sections: 1) basic, cleartext authentication and 2) hash-based authentication. -Source code for the tutorial in included in the F directory +Source code for the tutorial in included in the F directory of the Tutorial Virtual machine (one subdirectory per chapter). There are also instructions for downloading the code in L. @@ -132,11 +132,11 @@ for us: $ script/myapp_create.pl model DB DBIC::Schema MyApp::Schema \ create=static components=TimeStamp dbi:SQLite:myapp.db \ on_connect_do="PRAGMA foreign_keys = ON" - exists "/root/dev/MyApp/script/../lib/MyApp/Model" - exists "/root/dev/MyApp/script/../t" - Dumping manual schema for MyApp::Schema to directory /root/dev/MyApp/script/../lib ... + exists "/home/catalyst/dev/MyApp/script/../lib/MyApp/Model" + exists "/home/catalyst/dev/MyApp/script/../t" + Dumping manual schema for MyApp::Schema to directory /home/catalyst/dev/MyApp/script/../lib ... Schema dump completed. - exists "/root/dev/MyApp/script/../lib/MyApp/Model/DB.pm" + exists "/home/catalyst/dev/MyApp/script/../lib/MyApp/Model/DB.pm" $ $ ls lib/MyApp/Schema/Result Author.pm BookAuthor.pm Book.pm Role.pm User.pm UserRole.pm @@ -324,7 +324,7 @@ B, if you try out the command above, be sure to delete the configurations. B Because we are using -L along with a +L along with a database layout that complies with its default assumptions: we don't need to specify the names of the columns where our username and password information is stored (hence, the "Simple" part of "SimpleDB"). That @@ -742,7 +742,7 @@ change is to the C field): ); The use of C will cause -Catalyst::Plugin::Authentication::Store::DBIC to call the +Catalyst::Plugin::Authentication::Store::DBIx::Class to call the C method we enabled on our C columns. @@ -864,6 +864,8 @@ C to the list of plugins: ConfigLoader Static::Simple + StackTrace + Authentication Session @@ -927,7 +929,7 @@ for C from: to: - sub list :Chained('base') :PathParth('list') :Args(0) { + sub list :Chained('base') :PathPart('list') :Args(0) { Finally, let's clean up the status/error message code in our wrapper template. Edit C and change the "content" div @@ -952,17 +954,18 @@ token, it is ignored -- thereby keeping the state of our status/error messages in sync with the users actions). +You can jump to the next chapter of the tutorial here: +L + + =head1 AUTHOR Kennedy Clark, C Feel free to contact the author for any errors or suggestions, but the best way to report issues is via the CPAN RT Bug system at -. - -The most recent version of the Catalyst Tutorial can be found at -L. +L. -Copyright 2006-2010, Kennedy Clark, under the +Copyright 2006-2011, Kennedy Clark, under the Creative Commons Attribution Share-Alike License Version 3.0 (L).