X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FAuthentication.pod;fp=lib%2FCatalyst%2FManual%2FTutorial%2FAuthentication.pod;h=a7e67cb589df739b1f6131ae47ebd8d7850c5434;hp=c8b21a876cd9bee3e00ff44032cc3eba67ed7faf;hb=c3cf3bc32d1fb13139827cd81749413e5b724111;hpb=56a2fe2a23306819678c534f48c4932866ec825e diff --git a/lib/Catalyst/Manual/Tutorial/Authentication.pod b/lib/Catalyst/Manual/Tutorial/Authentication.pod index c8b21a8..a7e67cb 100644 --- a/lib/Catalyst/Manual/Tutorial/Authentication.pod +++ b/lib/Catalyst/Manual/Tutorial/Authentication.pod @@ -316,7 +316,29 @@ C<__PACKAGE__-Esetup();>: We could have placed this configuration in C, but placing it in C is probably a better place since it's not likely something that users of your application will want to change during -deployment. +deployment (or you could use a mixture: leave C and +C defined in C as we show above, but place +C in C to allow the type of password to be +easily modified during deployment). We will stick with putting +all of the authentication-related configuration in C +for the tutorial, but if you wish to use C, just convert +to the following code: + + + use_session 1 + + password_type self_check + user_model DB::Users + class SimpleDB + + + +B Here is a short script that will dump the contents of +Cconfig> to L format in +C: + + $ perl -Ilib -e 'use MyApp; use Config::General; + Config::General->new->save_file("myapp.conf", MyApp->config);' =head2 Add Login and Logout Controllers