X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2F05_Authentication.pod;h=5628b1986dd7e19a79c65dd204e2f88e4399b544;hp=17bfa4996b64b6662dc24181310e0d2d29cb61a9;hb=cc0ef55e7569cf9746bdeaaebbc0b72ddcd97467;hpb=f68b710f44808db5684c6346779080d35896346a diff --git a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod index 17bfa49..5628b19 100644 --- a/lib/Catalyst/Manual/Tutorial/05_Authentication.pod +++ b/lib/Catalyst/Manual/Tutorial/05_Authentication.pod @@ -754,10 +754,14 @@ C directory for our C model. The DBIC_TRACE output should show that the update worked: $ DBIC_TRACE=1 perl -Ilib set_hashed_passwords.pl - SELECT me.id, me.username, me.password, me.email_address, me.first_name, me.last_name, me.active FROM user me: - UPDATE user SET password = ? WHERE ( id = ? ): 'oXiyAcGOjowz7ISUhpIm1IrS8AxSZ9r4jNjpX9VnVeQmN6GRtRKTz', '1' - UPDATE user SET password = ? WHERE ( id = ? ): 'PmyEPrkB8EGwvaF/DvJm7LIfxoZARjv8ygFIR7pc1gEA1OfwHGNzs', '2' - UPDATE user SET password = ? WHERE ( id = ? ): 'h7CS1Fm9UCs4hjcbu2im0HumaHCJUq4Uriac+SQgdUMUfFSoOrz3c', '3' + SELECT me.id, me.username, me.password, me.email_address, + me.first_name, me.last_name, me.active FROM user me: + UPDATE user SET password = ? WHERE ( id = ? ): + 'oXiyAcGOjowz7ISUhpIm1IrS8AxSZ9r4jNjpX9VnVeQmN6GRtRKTz', '1' + UPDATE user SET password = ? WHERE ( id = ? ): + 'PmyEPrkB8EGwvaF/DvJm7LIfxoZARjv8ygFIR7pc1gEA1OfwHGNzs', '2' + UPDATE user SET password = ? WHERE ( id = ? ): + 'h7CS1Fm9UCs4hjcbu2im0HumaHCJUq4Uriac+SQgdUMUfFSoOrz3c', '3' But we can further confirm our actions by dumping the users table: @@ -774,8 +778,8 @@ situations. =head2 Enable Hashed and Salted Passwords -Edit C and update it to match the following text (the only change -is to the C field): +Edit C and update it to match the following text (the +only change is to the C field): # Configure SimpleDB Authentication __PACKAGE__->config->{'Plugin::Authentication'} = { @@ -853,9 +857,9 @@ flash vs. the C query parameter: ... Although the sample above only shows the C div, leave the -rest of the file intact -- the only change we made to the C -was to add "C<|| c.request.params.status_msg>" to the -Cspan class="message"E> line. +rest of the file intact -- the only change we made to replace +"|| c.request.params.status_msg" with "c.flash.status_msg" in the +C<< >> line. =head2 Try Out Flash