$user->store() should NOT be set by C::P::Auth - if it's needed - it
Jay Kuri [Sun, 22 Jul 2007 03:22:06 +0000 (03:22 +0000)]
should be set by whatever module creates the user.  We use realm for
saving into the session.  that's the important bit

lib/Catalyst/Plugin/Authentication.pm

index 6c69a90..2b81662 100644 (file)
@@ -40,7 +40,6 @@ sub set_authenticated {
         $c->save_user_in_session($user, $realmname);
     }
     $user->auth_realm($realmname);
-    $user->store(ref($c->auth_realms->{$realmname}{'store'}));
     
     $c->NEXT::set_authenticated($user, $realmname);
 }
@@ -150,10 +149,7 @@ sub auth_restore_user {
     
     # this sets the realm the user originated in.
     $user->auth_realm($realmname);
-    ## compatibility - some pre 0.10 store / credentials may need the store name,
-    ## this is not used by the current api in any form.
-    $user->store(ref($c->auth_realms->{$realmname}{'store'}));
-    
+        
     return $user;
 
 }