From: Yuval Kogman Date: Sat, 26 Nov 2005 03:16:56 +0000 (+0000) Subject: Bug fix for auth session restoration + Improvements to handling of default auth store X-Git-Tag: v0.03~18 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Authentication-Credential-HTTP-Proxy.git;a=commitdiff_plain;h=e460bebe413c7762cf72b19384664965c83e4c41 Bug fix for auth session restoration + Improvements to handling of default auth store --- diff --git a/lib/Catalyst/Plugin/Authentication/Credential/TypeKey.pm b/lib/Catalyst/Plugin/Authentication/Credential/TypeKey.pm index 4d9df06..cbdfb5f 100644 --- a/lib/Catalyst/Plugin/Authentication/Credential/TypeKey.pm +++ b/lib/Catalyst/Plugin/Authentication/Credential/TypeKey.pm @@ -54,7 +54,7 @@ sub authenticate_typekey { my $user; - if ( my $store = $config->{auth_store} ) { + if ( my $store = $config->{auth_store} || $c->default_auth_store ) { $store = $c->get_auth_store($store) unless ref $store; $user = $store->get_user( $p, $res ); }