X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FAuthentication.pod;h=8bae7167e8cb4286630e8839fe15b5f80b824b94;hp=e66fee8ecc3b570aa7960b98d3cc8f368b1038e6;hb=b411df01b40662f125aa854a7c25097bc53ad86a;hpb=905a3a26761669e7c4fd80daa50034eaa3375b50 diff --git a/lib/Catalyst/Manual/Tutorial/Authentication.pod b/lib/Catalyst/Manual/Tutorial/Authentication.pod index e66fee8..8bae716 100644 --- a/lib/Catalyst/Manual/Tutorial/Authentication.pod +++ b/lib/Catalyst/Manual/Tutorial/Authentication.pod @@ -453,7 +453,7 @@ Create a login form by opening C and inserting: [% META title = 'Login' %] -
+ @@ -589,9 +589,9 @@ 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_exists %] - Please Note: You are already logged in as '[% Catalyst.user.username %]'. - You can logout here. + [% IF c.user_exists %] + Please Note: You are already logged in as '[% c.user.username %]'. + You can logout here. [% ELSE %] You need to log in to use this application. [% END %] @@ -638,8 +638,8 @@ Open C and add the following lines to the bottom (below the closing
Username:
tag):

- Login - Create + Login + Create

Reload your browser and you should now see a "Login" and "Create" links @@ -813,7 +813,7 @@ flash vs. the C query parameter:
- [% status_msg || Catalyst.flash.status_msg %] + [% status_msg || c.flash.status_msg %] [% error_msg %] [% content %]
@@ -841,7 +841,7 @@ information. Although the a use of flash above is certainly an improvement over the C we employed in Part 4 of the tutorial, the C statement is a little ugly. A nice +|| c.flash.status_msg> statement is a little ugly. A nice alternative is to use the C feature that automatically copies the content of flash to stash. This makes your code controller and template code work regardless of where it was directly access, a @@ -873,7 +873,7 @@ Restart the development server and go to L in your browser. Delete another of the "Test" books you added in the previous step. Flash should still maintain the status message across the redirect even though you are no -longer explicitly accessing C. +longer explicitly accessing C. =head1 AUTHOR