[Catalyst] How to extend authentication to use other DB fields?
Julien Sobrier
julien at sobrier.net
Thu Mar 25 04:52:02 GMT 2010
Hello,
I am currently using the simple password authentnication:
__PACKAGE__->config->{'Plugin::Authentication'} = {
default => {
class => 'DBIx::SimpleDB', #
user_model => 'DB::User',
password_type => 'self_check',
},
};
with $c->authenticate({ username => [..], password => [...] });
I would like to extend my autentication to accept other fields:
with $c->authenticate({ fileld1 => [..], field2 => [...], fieldd => [...] });
Do I have to create my own Catalyst::Authentication::Credential plugin?
Thank you
Julien
More information about the Catalyst
mailing list