From: Tomas Doran Date: Tue, 25 Aug 2009 14:27:40 +0000 (+0000) Subject: Change default username_field back to 'username', as this fits in better with the... X-Git-Tag: v0.10014~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Authentication.git;a=commitdiff_plain;h=0de2d0935e9fd36c8b78db3cbae6d342cd963adf Change default username_field back to 'username', as this fits in better with the DBIC store / SimpleDB / tutorial / preexisting documentation etc --- diff --git a/lib/Catalyst/Authentication/Credential/Remote.pm b/lib/Catalyst/Authentication/Credential/Remote.pm index 4bf8960..55b485f 100644 --- a/lib/Catalyst/Authentication/Credential/Remote.pm +++ b/lib/Catalyst/Authentication/Credential/Remote.pm @@ -35,7 +35,7 @@ sub new { } $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; } diff --git a/t/lib/RemoteTestApp1.pm b/t/lib/RemoteTestApp1.pm index ff66626..dbba67c 100644 --- a/t/lib/RemoteTestApp1.pm +++ b/t/lib/RemoteTestApp1.pm @@ -28,7 +28,7 @@ __PACKAGE__->config( 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');