Authen-Simple-PlugAuth
view release on metacpan or search on metacpan
lib/Authen/Simple/PlugAuth.pm view on Meta::CPAN
type => Params::Validate::SCALAR,
optional => 0,
},
});
sub init
{
my($self, $param) = @_;
$self->SUPER::init($param);
$self->{client} = PlugAuth::Client::Tiny->new( url => $self->url );
$self;
}
sub check
{
my($self, $username, $password) = @_;
$self->{client}->auth($username, $password) ? 1 : 0;
}
( run in 0.272 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )