my $user = $self->userhash->{$id};
- #print STDERR "FOO1! " . ref($user) . " - ". Scalar::Util::blessed($user) . "\n";
-
if ( ref($user) eq "HASH") {
$user->{id} ||= $id;
return bless $user, "Catalyst::Authentication::User::Hash";
$self->find_user({id => $id});
}
-## backwards compatibility
-sub setup {
- my $c = shift;
-
- $c->default_auth_store(
- __PACKAGE__->new(
- $c->config->{authentication}, $c
- )
- );
-
- $c->NEXT::setup(@_);
-}
-
__PACKAGE__;
__END__
Authentication
/;
- __PACKAGE__->config->{authentication} =
+ __PACKAGE__->config( 'Plugin::Authentication' =>
{
default_realm => 'members',
realms => {
}
}
}
- };
+ }
+ );
=head1 DESCRIPTION
=head2 get_user( )
+Deprecated
+
=head2 setup( )
=cut