Hi,
I have modified my code and it is encrypting the
password.
But the password is coming a very long string.
My updated code is :-
user=User.find(2)
user.password="password"
user.password_confirmation="password"
user.save

It is encrypting the password like this:-
"9b2dcddea0f2ecab44c195b36035cab8da14e719b51c696e704f885f29f8310939fb980d11434c545b43cfa9390b1e6b3d5dbb82f97289da9a1740eadda6b5ae"

Is it right?

Thanks,
Tushar


>> It is creating the entry in users table with crypted_password is equal
>> to "password".
>> How should I fix this?
>> Any help appreciated?
>> 
>> Thanks,
>> Tushar Gandhi

-- 
Posted via http://www.ruby-forum.com/.

-- 
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.

Reply via email to