X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FPlugin%2FAuthentication%2FStore%2FMinimal.pm;h=95029cca6bf14540c8517862d72ec7b9b2650037;hb=52eebd310580e2b95479c9c33a24c375dfeb6e7c;hp=18403773650382286b35e4f33e2761e2b49b3e35;hpb=c5fbff806cf01bf3ba3a4cab869be2321f6d3c52;p=catagits%2FCatalyst-Plugin-Authentication.git diff --git a/lib/Catalyst/Plugin/Authentication/Store/Minimal.pm b/lib/Catalyst/Plugin/Authentication/Store/Minimal.pm index 1840377..95029cc 100644 --- a/lib/Catalyst/Plugin/Authentication/Store/Minimal.pm +++ b/lib/Catalyst/Plugin/Authentication/Store/Minimal.pm @@ -42,6 +42,11 @@ sub find_user { my $user = $self->userhash->{$id}; if ( ref $user ) { + if ( Scalar::Util::blessed($user) + and $user->isa('Catalyst::Plugin::Authentication::User::Hash') ) + { + return $user; + } if ( ref $user eq "HASH" ) { $user->{id} ||= $id; return bless $user, "Catalyst::Plugin::Authentication::User::Hash";