Catalyst-Authentication-Store-KiokuDB
view release on metacpan or search on metacpan
lib/Catalyst/Authentication/User/KiokuDB.pm view on Meta::CPAN
hashed => [qw/hashed_password hash_algorithm/],
self_check => undef,
},
roles => ["roles"],
session => 1,
);
sub supports {
my ($self, @spec) = @_;
my $cursor = \%features;
return 1 if @spec == 1 and $self->can($spec[0]);
# XXX is this correct?
for (@spec) {
return if ref($cursor) ne "HASH";
$cursor = $cursor->{$_};
}
if (ref $cursor) {
die "Bad feature spec: '@spec'" unless ref $cursor eq "ARRAY";
foreach my $key (@$cursor) {
return undef unless $self->can($key);
}
return 1;
}
else {
return $cursor;
}
}
sub for_session {
my $self = shift;
return $self; # KiokuDB should be fine with storing objects in the session
}
sub from_session {
my ($self, $c, $user) = @_;
( run in 0.224 second using v1.01-cache-2.11-cpan-4d50c553e7e )