Changelog, aesthetic cleanup
Yuval Kogman [Sat, 29 Jul 2006 15:54:25 +0000 (15:54 +0000)]
Changes
lib/Catalyst/Plugin/Authentication.pm

diff --git a/Changes b/Changes
index af63ebd..551e303 100644 (file)
--- a/Changes
+++ b/Changes
@@ -2,6 +2,7 @@ Revision history for Perl extension Catalyst::Plugin::Authentication
 
 0.08
         - factor test applications out to files due to changes in Catalyst::Test
+        - don't load session at prepare time unless necessary
 
 0.07    2006-03-17 17:33:12
         - allow base64 hashed passwords
index d7b36cd..719d127 100644 (file)
@@ -63,10 +63,8 @@ sub user_exists {
 sub _user_in_session {
     my $c = shift;
 
-    if ( $c->isa("Catalyst::Plugin::Session") ) {
-        if ( $c->session_is_valid ) {
-            return $c->session->{__user};
-        }
+    if ( $c->isa("Catalyst::Plugin::Session") and $c->session_is_valid ) {
+        return $c->session->{__user};
     }
 
     return;