[Catalyst] Patch for
Catalyst::Authentication::Store::DBIx::Class::User
David Jack Wange Olrik
david at olrik.dk
Thu Aug 21 21:12:40 BST 2008
On 21/08/2008, at 07.00, Jason Kuri wrote:
> Thanks for the patch, but I think you are misunderstanding the use
> of id_field.
Looks like it... I thought id_field worked the same way as
'password_field'.
> Your $c->authenticate({ ... } ) call should contain the fields you
> want to query on. So if your username field is 'user' then you want
> to call:
>
> $c->authenticate({ user => $c->req->params->{'login'}, ... });
Wouldn't it be neat to have the username field configurable, just
like 'password_field' ?
That way you can exchange credential store without changing any
code at all.
--
Best regards,
David Jack Olrik <david at olrik.dk> http://david.olrik.dk
GnuPG fingerprint C290 0A4A 0CCC CBA8 2B37 E18D 01D2 F6EF 2E61 9894
["The first rule of Perl club is You do not talk about Perl club"]
More information about the Catalyst
mailing list