[Rails] Re: authlogic fails on existing accounts when crypted_password is blank

2009-11-14 Thread Matt Jones
Don't forget step 2: LART whoever thought a cleartext password field was a good idea. :) --Matt Jones On Nov 14, 9:15 am, SeanWalberg wrote: > On Nov 13, 6:01 pm, "Todd A. Jacobs" > b4f...@codegnome.org> wrote: > > How can I get authlogic to either use the cleartext passwords, or to > > bulk-p

[Rails] Re: authlogic fails on existing accounts when crypted_password is blank

2009-11-14 Thread Conrad Taylor
On Fri, Nov 13, 2009 at 4:01 PM, Todd A. Jacobs < tjacobs-sndr-b4f...@codegnome.org> wrote: > > I recently ran a migration to add the following to an existing user > model: > >t.string "crypted_password" >t.string "password_salt" >t.string "persistence_token" > > There is an exis

[Rails] Re: authlogic fails on existing accounts when crypted_password is blank

2009-11-14 Thread SeanWalberg
On Nov 13, 6:01 pm, "Todd A. Jacobs" wrote: > How can I get authlogic to either use the cleartext passwords, or to > bulk-populate the crypted_password and password_salt fields for existing > accounts? OTTOMH: User.find(:all).each do |user| user.password = user.cleartextpassword user.passwor