[Catalyst-commits] r7052 - in trunk/Catalyst-Plugin-Authentication: . lib/Catalyst/Plugin/Authentication

bricas at dev.catalyst.perl.org bricas at dev.catalyst.perl.org
Wed Oct 24 21:37:08 GMT 2007


Author: bricas
Date: 2007-10-24 21:37:08 +0100 (Wed, 24 Oct 2007)
New Revision: 7052

Modified:
   trunk/Catalyst-Plugin-Authentication/Changes
   trunk/Catalyst-Plugin-Authentication/lib/Catalyst/Plugin/Authentication/Realm.pm
Log:
auto_update|create => auto_update|create_user

Modified: trunk/Catalyst-Plugin-Authentication/Changes
===================================================================
--- trunk/Catalyst-Plugin-Authentication/Changes	2007-10-24 20:22:33 UTC (rev 7051)
+++ trunk/Catalyst-Plugin-Authentication/Changes	2007-10-24 20:37:08 UTC (rev 7052)
@@ -3,7 +3,7 @@
 0.10003 2007-XX-XX
         - Added a "Null" store for credentials that don't require real stores.
         - Make realms bonafide objects
-        - Added auto_update and auto_create options to the Realm object
+        - Added auto_update_user and auto_create_user options to the Realm object
 
 0.10002 2007-07-22
         - $user->store() should NOT be set by C::P::Auth - if it's needed - it

Modified: trunk/Catalyst-Plugin-Authentication/lib/Catalyst/Plugin/Authentication/Realm.pm
===================================================================
--- trunk/Catalyst-Plugin-Authentication/lib/Catalyst/Plugin/Authentication/Realm.pm	2007-10-24 20:22:33 UTC (rev 7051)
+++ trunk/Catalyst-Plugin-Authentication/lib/Catalyst/Plugin/Authentication/Realm.pm	2007-10-24 20:37:08 UTC (rev 7052)
@@ -88,11 +88,11 @@
     my $res = $self->store->find_user($authinfo, $c);
     
     if (!$res) {
-      if ($self->config->{'auto_create'} && $self->store->can('auto_create') ) {
-          $res = $self->store->auto_create($authinfo, $c);
+      if ($self->config->{'auto_create_user'} && $self->store->can('auto_create_user') ) {
+          $res = $self->store->auto_create_user($authinfo, $c);
       }
-    } elsif ($self->config->{'auto_update'} && $self->store->can('auto_update')) {
-        $res = $self->store->auto_update($authinfo, $c, $res);
+    } elsif ($self->config->{'auto_update_user'} && $self->store->can('auto_update_user')) {
+        $res = $self->store->auto_update_user($authinfo, $c, $res);
     } 
     
     return $res;




More information about the Catalyst-commits mailing list