Mailing List Archive

[PATCH] Catalyst::Plugin::Authentication::CDBI
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@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