On Thursday 21 August 2008 23:12:40 David Jack Wange Olrik wrote: > Wouldn't it be neat to have the username field configurable, just > like 'password_field' ?
You don't need that, read this: http://search.cpan.org/perldoc?Catalyst::Authentication::Store::DBIx::Class#Simple_Retrieval if ($c->authenticate({ username => $c->req->params->{'username'}, password => $c->req->params->{'password'}, status => [ 'registered', 'active', 'loggedin'] })) { These name => value pairs are used more or less directly in the DBIx::Class' search() routine, so in most cases, you can use DBIx::Class syntax to retrieve the user according to whatever rules you have. Basically you pass whatever hashref you need to $c->authenticate. The password_field is necessary because of the possible changes done by Credential::Password . -- Bogdan Lucaciu http://www.wiz.ro
_______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/