[Catalyst-commits] r11240 - in Catalyst-Plugin-Authentication/0.10000/trunk: lib/Catalyst/Authentication/Credential t/lib

t0m at dev.catalyst.perl.org t0m at dev.catalyst.perl.org
Tue Aug 25 14:27:41 GMT 2009


Author: t0m
Date: 2009-08-25 14:27:40 +0000 (Tue, 25 Aug 2009)
New Revision: 11240

Modified:
   Catalyst-Plugin-Authentication/0.10000/trunk/lib/Catalyst/Authentication/Credential/Remote.pm
   Catalyst-Plugin-Authentication/0.10000/trunk/t/lib/RemoteTestApp1.pm
Log:
Change default username_field back to 'username', as this fits in better with the DBIC store / SimpleDB / tutorial / preexisting documentation etc

Modified: Catalyst-Plugin-Authentication/0.10000/trunk/lib/Catalyst/Authentication/Credential/Remote.pm
===================================================================
--- Catalyst-Plugin-Authentication/0.10000/trunk/lib/Catalyst/Authentication/Credential/Remote.pm	2009-08-25 11:26:15 UTC (rev 11239)
+++ Catalyst-Plugin-Authentication/0.10000/trunk/lib/Catalyst/Authentication/Credential/Remote.pm	2009-08-25 14:27:40 UTC (rev 11240)
@@ -35,7 +35,7 @@
     }
     $self->source($config->{source} || 'REMOTE_USER');
     $self->realm($realm);
-    $self->username_field($config->{username_field} || 'id');
+    $self->username_field($config->{username_field} || 'username');
     return $self;
 }
 

Modified: Catalyst-Plugin-Authentication/0.10000/trunk/t/lib/RemoteTestApp1.pm
===================================================================
--- Catalyst-Plugin-Authentication/0.10000/trunk/t/lib/RemoteTestApp1.pm	2009-08-25 11:26:15 UTC (rev 11239)
+++ Catalyst-Plugin-Authentication/0.10000/trunk/t/lib/RemoteTestApp1.pm	2009-08-25 14:27:40 UTC (rev 11240)
@@ -28,7 +28,7 @@
 sub default : Local {
     my ( $self, $c ) = @_;
     if ($c->authenticate()) {
-        $c->res->body('User:' . $c->user->{id});
+        $c->res->body('User:' . $c->user->{username});
     }
     else {
         $c->res->body('FAIL');




More information about the Catalyst-commits mailing list