[Catalyst-dev] [PATCH] Catalyst::Plugin::Authentication::CDBI

Drew Taylor taylor.andrew.j at gmail.com
Sat May 14 21:48:00 CEST 2005


The pod is incorrect when stating how to set the authentication config. This 
is a very simple change, but didn't want it to get lost.

==================================================================
--- CDBI.pm (revision 3845)
+++ CDBI.pm (local)
@@ -12,13 +12,13 @@
=head1 SYNOPSIS

use Catalyst 'Authentication::CDBI';
- __PACKAGE__->config->{authentication} = (
+ __PACKAGE__->config->{authentication} = {
user_class => 'PetStore::Model::CDBI::Customer',
user_field => 'email',
role_class => 'PetStore::Model::CDBI::Role',
user_role_class => 'PetStore::Model::CDBI::CustomerRole',
user_role_user_field => 'customer'
- );
+ };
$c->login( $user, $password );
$c->logout;
$c->session_login( $user, $password );

-- 
----------------------------------------------------------------
Drew Taylor * Web development & consulting
Email: drew at drewtaylor.com * Site implementation & hosting
Web : www.drewtaylor.com <http://www.drewtaylor.com> * 
perl/mod_perl/DBI/mysql/postgres
----------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst-dev/attachments/20050514/9ec1d620/attachment.htm


More information about the Catalyst-dev mailing list