Catalyst.user => Catalyst.user_exists
Kieren Diment [Tue, 22 Aug 2006 13:39:11 +0000 (13:39 +0000)]
lib/Catalyst/Manual/Tutorial/Authentication.pod

index 26707fe..2f23c71 100644 (file)
@@ -624,7 +624,7 @@ lines to the bottom of the file:
        # This code illustrates how certain parts of the TT 
        # template will only be shown to users who have logged in
     %]
-    [% IF Catalyst.user %]
+    [% IF Catalyst.user_exists %]
         Please Note: You are already logged in as '[% Catalyst.user.username %]'.
         You can <a href="[% Catalyst.uri_for('/logout') %]">logout</a> here.
     [% ELSE %]