my $user = $self->{'hash'}{$id};
if ( ref $user ) {
- if ( Scalar::Util::blessed($user) ) {
- $user->id( $id );
- return $user;
- }
- elsif ( ref $user eq "HASH" ) {
+ if ( ref $user eq "HASH" ) {
$user->{id} ||= $id;
return bless $user, "Catalyst::Plugin::Authentication::User::Hash";
}
Keys the hash by the 'id' or 'username' element in the authinfo hash and returns the user.
+... documentation fairy stopped here. ...
+
If the return value is unblessed it will be blessed as
L<Catalyst::Plugin::Authentication::User::Hash>.