changes update plus some stub docs
[catagits/Catalyst-Plugin-Authentication.git] / lib / Catalyst / Plugin / Authentication / Realm.pm
index d9ec742..7dcf1a7 100644 (file)
@@ -2,6 +2,7 @@ package Catalyst::Plugin::Authentication::Realm;
 
 use strict;
 use warnings;
+
 use base qw/Class::Accessor::Fast/;
 
 BEGIN {
@@ -93,7 +94,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 +136,32 @@ sub from_session {
 
 __PACKAGE__;
 
-__END__
\ No newline at end of file
+__END__
+
+=pod
+
+=head1 NAME
+
+Catalyst::Plugin::Authentication::Realm - Base class for realm objects.
+
+=head1 DESCRIPTION
+
+=head1 METHODS
+
+=over 4
+
+=item new
+
+=item find_user
+
+=item authenticate
+
+=item save_user_in_session
+
+=item from_session
+
+=back
+
+=cut
+
+