Various minor adjustments to code and a WHOLE lot of documentation
[catagits/Catalyst-Plugin-Authentication.git] / lib / Catalyst / Plugin / Authentication / Store / Minimal / Backend.pm
index 1514959..56bf8d1 100644 (file)
@@ -37,11 +37,7 @@ sub find_user {
     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";
         }
@@ -184,6 +180,8 @@ hash ref as it's backing structure.
 
 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>.