Bug fix for auth session restoration + Improvements to handling of default auth store
Yuval Kogman [Sat, 26 Nov 2005 03:16:56 +0000 (03:16 +0000)]
lib/Catalyst/Plugin/Authentication/Credential/TypeKey.pm

index 4d9df06..cbdfb5f 100644 (file)
@@ -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 );
         }