Added a Template loop in usercreate.tt to show existing users.
Gavin Henry [Thu, 16 Mar 2006 14:40:30 +0000 (14:40 +0000)]
lib/Catalyst/Manual/Tutorial.pod

index bdb2cae..5b0e973 100644 (file)
@@ -475,6 +475,12 @@ The usercreate.tt template looks like this:
 
  <html><head><title>[% c.config.name %]</title></head><body>
  <h1>Create a new user</h1>
+ <h2>Current users are:</h2>
+ <p>
+    [% FOREACH key = c.config.authentication.users.keys %]
+        [% key %]<br/>
+    [% END %]
+ </p>
  <p> [% c.stash.message %] </p>
  <form action="/users/create" method="post">
  <p>User Name: <input type="text" name="username"/></p>