[typo] can't login after upgrade

jeremy*pinnix jpinnix.alt at gmail.com
Wed Nov 23 09:43:21 EST 2005


Excellent suggestion! It put me on the right track. However, with
find_by_name it is actually looking for the column "name" which is
different than the "login". So I changed your console script to be:

$ ./script/console production
Loading production environment.
>> you = User.find_by_login('yourusername')
=> #<User:0x8f8baa4 @attributes={"name"=>"yourusername", "id"=>"1",........
>> you.password = you.password_confirmation = 'newpassword'
=> "newpassword"
>> you.save
=> true
>> quit

That worked!


More information about the Typo-list mailing list