On May 28, 3:49 pm, andrew v <andrew....@gmail.com> wrote:
> On Fri, May 28, 2010 at 6:07 PM, Frederick Cheung <
> The users table has crypted_password, and salt columns which is giving me
> problems when I try to reset password from the console.After reading the
> documentation for restful authentication, it appears that the I need to
> store the hashed password in crypted_password field. Therefore, I approached
> the problem as follows:
>
the password needs to be hashed with the salt. However you don't to
know any of that - normally you'll have a
before_save :encrypt_password or something like that: if you set
password & password_confirmation then restful auth will do the hashing
for you when you save the record
Fred
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment