X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FAuthentication%2FStore%2FNull.pm;h=2664685c4ffe8aad34bb36cdd39282dfbd502952;hb=675fe850ff8ef284e35f9b78141543187df59d72;hp=90dbf74cff47f3a36d47af82a3cb3fc56edc1bf7;hpb=861f65b0641d650ed502d233750c61f178ce43e1;p=catagits%2FCatalyst-Plugin-Authentication.git diff --git a/lib/Catalyst/Authentication/Store/Null.pm b/lib/Catalyst/Authentication/Store/Null.pm index 90dbf74..2664685 100644 --- a/lib/Catalyst/Authentication/Store/Null.pm +++ b/lib/Catalyst/Authentication/Store/Null.pm @@ -8,21 +8,21 @@ use Catalyst::Authentication::User::Hash; use base qw( Class::Accessor::Fast ); BEGIN { - __PACKAGE__->mk_accessors( qw( __config ) ); + __PACKAGE__->mk_accessors( qw( _config ) ); } sub new { my ( $class, $config, $app, $realm ) = @_; - bless { __config => $config }, $class; + bless { _config => $config }, $class; } sub for_session { - my ( $self, $c, $user ) = @_; + my ( $self, $c, $user ) = @_; return $user; } sub from_session { - my ( $self, $c, $user ) = @_; + my ( $self, $c, $user ) = @_; return $user; } @@ -52,7 +52,7 @@ Catalyst::Authentication::Store::Null - Null authentication store Authentication ); - __PACKAGE__->config->{'Plugin::Authentication'} = { + __PACKAGE__->config( 'Plugin::Authentication' => { default_realm => 'remote', realms => { remote => { @@ -64,8 +64,8 @@ Catalyst::Authentication::Store::Null - Null authentication store class => 'Null', } } - } - }; + } + }); =head1 DESCRIPTION