Subject: | No username_field in Credential::Password |
Hi,
Credential::Password not have a username_field like Credential::HTTP has
and the rest of the Catalyst::Authentication::Credential::* namespace?
e.g. The key name in the authinfo hash that the user's username is
mapped into. This is useful for using a store which requires a specific
unusual field name for the username. The username is additionally mapped
onto the id key.
Credential::HTTP has it right:
my $user_obj = $realm->find_user( { $self->username_field => $username
}, $c);
$username should come in from ->authenticate( { username => $blah
If username_field in config isn't empty, default to 'username'.
This is because of:
http://lists.scsys.co.uk/pipermail/catalyst/2012-June/028749.html
Patch?