On Wed, Aug 12, 2009 at 2:06 PM, brianp<[email protected]> wrote: > > Hey Again, > > So I'm still working through AWDwR and I've just completed the > authentication section for users. I understand the idea behind salts > and general authentication. The part I feel I'm missing is when the > first salt is created and stored to the db.
Assuming your are talking about the 3rd ed. It's on pages 161-62 On p 162 is the method create_new_salt which computes the salt. That method is called in the passwd= method on p162 which calls create_new_salt and then computes the hashed password from the password and the salt. HTH If it's not the 3rd edition, then I'm pretty sure it's there but just on different page numbers. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

