[Catalyst] How to extend authentication to use other DB fields?

Tomas Doran bobtfish at bobtfish.net
Fri Mar 26 12:48:18 GMT 2010


Julien Sobrier wrote:
> __PACKAGE__->config->{'Plugin::Authentication'} = {
> 	default => {

<snip>

> There might be a better way to do it.

A better way to do it is calling config as a method, rather than doing 
direct hash access.

So:

__PACKAGE__->config('Plugin::Authentication' => {...

Cheers
t0m



More information about the Catalyst mailing list