[Catalyst] C::P::Authentication::CDBI patch

Marcello m.romani at spinsoft.it
Wed Jun 15 16:30:24 CEST 2005


Hi,

Applying this patch against CDBI.pm version 0.06 $c->req->{user} becomes 
the Class::DBI user object rather than just the username.

If we have something like:

package MyApp::M::CDBI::User

__PACKAGE__->columns( Stringify => qw| username | );

1;

we can still use c.req.user in templates to display the username as we 
did with the original module.



Marcello
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CDBI.pm.patch
Type: text/x-patch
Size: 617 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20050615/26cc20e4/CDBI.pm.bin


More information about the Catalyst mailing list