3 package Catalyst::Plugin::Authentication::Store::Htpasswd::User;
4 use base qw/Catalyst::Plugin::Authentication::User Class::Accessor::Fast/;
9 BEGIN { __PACKAGE__->mk_accessors(qw/user store/) }
11 use overload '""' => sub { shift->id }, fallback => 1;
14 my ( $class, $store, $user ) = @_;
16 bless { store => $store, user => $user }, $class;
21 return $self->user->username;
24 sub supported_features {
34 my ( $self, $password ) = @_;
35 return $self->user->check_password( $password );
40 split( /,/, $self->user->extra_info );
51 ( my $method ) = ( our $AUTOLOAD =~ /([^:]+)$/ );
53 return if $method eq "DESTROY";
66 Catalyst::Plugin::Authentication::Store::Htpasswd::User - A user object
67 representing an entry in an htpasswd file.
71 use Catalyst::Plugin::Authentication::Store::Htpasswd::User;