Re: [Rails] how to encrypt password in php

2013-05-03 Thread tamouse mailing lists
On Thu, May 2, 2013 at 10:51 PM, Emil S wrote: > How about migrating your user table using ActiveRecord? > I can get the data of a user from the old DB in some way, and migrate into > the new DB using this : > > User.create(email: 't...@test.com', password: 'unencrypted password from old > db', pa

Re: [Rails] how to encrypt password in php

2013-05-02 Thread Emil S
How about migrating your user table using ActiveRecord? I can get the data of a user from the old DB in some way, and migrate into the new DB using this : User.create(email: 't...@test.com', password: 'unencrypted password from old db', password_confirmation :'same_password') On 3 May 2013 07:0

Re: [Rails] how to encrypt password in php

2013-05-02 Thread Walter Lee Davis
On May 2, 2013, at 6:32 PM, oto iashvili wrote: > Hi, > im migrating a website from php to rails and devise. There is a user table > with password that are not encrypted. I made already a script in php to > migrate to data to new database, but I cant figure how to encrypt password so > i w

[Rails] how to encrypt password in php

2013-05-02 Thread oto iashvili
Hi, im migrating a website from php to rails and devise. There is a user table with password that are not encrypted. I made already a script in php to migrate to data to new database, but I cant figure how to encrypt password so i will work with devise. I foudn different solution on google, b