if ( !$user and my $store = $config->{auth_store} ) {
$store = $c->get_auth_store($store) unless ref $store;
- $user = $store->get_user( $p, $res );
+ $user = $store->get_user( $res->{name}, $p, $res );
}
if ( !$user ) {
When a user is successfully authenticated it will call this:
- $store->get_user( $parameters, $result_of_verify );
+ $store->get_user( $name, $parameters, $result_of_verify );
Where C<$parameters> is a the hash reference passed to
L<Authen::TypeKey/verify>, and C<$result_of_verify> is the value returned by
my $store = Test::MockObject->new;
$store->mock( get_user =>
- sub { shift; Catalyst::Plugin::Authentication::User::Hash->new(@_) } );
+ sub { shift; Catalyst::Plugin::Authentication::User::Hash->new($_[2]) } );
my $c = Test::MockObject::Extends->new($m);
$c->set_always( config => {} );