allow the realm to use session even if main auth module doesn't
[catagits/Catalyst-Plugin-Authentication.git] / lib / Catalyst / Authentication / Realm / Compatibility.pm
index bceba97..3d188a9 100644 (file)
@@ -14,6 +14,7 @@ sub new {
     my $self = { config => $config };
     bless $self, $class;
     
+    $self->config->{'use_session'} = $app->config->{'Plugin::Authentication'}{'use_session'} || '1';
     $self->name($realmname);
     
     return $self;