send $res to auto_update
Brian Cassidy [Tue, 9 Oct 2007 20:29:59 +0000 (20:29 +0000)]
lib/Catalyst/Plugin/Authentication/Realm.pm

index d9ec742..caace07 100644 (file)
@@ -93,7 +93,7 @@ sub find_user {
           $res = $self->store->auto_create($authinfo, $c);
       }
     } elsif ($self->config->{'auto_update'} && $self->store->can('auto_update')) {
-        $res = $self->store->auto_update($authinfo, $c);
+        $res = $self->store->auto_update($authinfo, $c, $res);
     } 
     
     return $res;
@@ -135,4 +135,4 @@ sub from_session {
 
 __PACKAGE__;
 
-__END__
\ No newline at end of file
+__END__