projects
/
catagits/Catalyst-Plugin-Authentication.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Support e.g. ->roles in User::Hash if set appropriately
[catagits/Catalyst-Plugin-Authentication.git]
/
lib
/
Catalyst
/
Plugin
/
Authentication.pm
diff --git
a/lib/Catalyst/Plugin/Authentication.pm
b/lib/Catalyst/Plugin/Authentication.pm
index
0b40b18
..
d5173ae
100644
(file)
--- a/
lib/Catalyst/Plugin/Authentication.pm
+++ b/
lib/Catalyst/Plugin/Authentication.pm
@@
-57,7
+57,7
@@
sub prepare {
my $c = shift->NEXT::prepare(@_);
if ( $c->isa("Catalyst::Plugin::Session")
- and $c->config->{authentication}{use_session}
+ and $c->default_auth_store
and !$c->user )
{
if ( $c->sessionid and my $user = $c->session->{__user} ) {