# maybe show warning that we are gonna use DEPRECATED $req->user
if (ref($c->req->user)) {
# I do not know exactly when this happens but it happens
- Catalyst::Exception->throw( "Cannot get remote user from ".
- "\$c->req->user as it seems to be a reference not a string" );
- }
- else {
- $remuser = $c->req->user;
- }
+ Catalyst::Exception->throw( "Cannot get remote user from ".
+ "\$c->req->user as it seems to be a reference not a string" );
+ }
+ else {
+ $remuser = $c->req->user;
+ }
}
}
elsif ($self->source =~ /^(SSL_CLIENT_.*|CERT_*|AUTH_USER)$/) {
}
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;
}
class => 'Null',
}
}
- }
+ }
});
=head1 DESCRIPTION
=head1 SYNOPSIS
- package MyStore::User;
- use base qw/Catalyst::Authentication::User/;
+ package MyStore::User;
+ use base qw/Catalyst::Authentication::User/;
=head1 DESCRIPTION
=head1 SYNOPSIS
- use Catalyst::Authentication::User::Hash;
-
- Catalyst::Authentication::User::Hash->new(
- password => "s3cr3t",
- );
+ use Catalyst::Authentication::User::Hash;
+
+ Catalyst::Authentication::User::Hash->new(
+ password => "s3cr3t",
+ );
=head1 DESCRIPTION
$c->default_auth_store( Catalyst::Authentication::Store::Minimal->new( $cfg, $c ) ) if $cfg;
- $c->next::method(@_);
+ $c->next::method(@_);
}
foreach my $method (qw/ get_user user_supports find_user from_session /) {