lost login

I migrated to latest typo version yesterday, and had no problems with it until tonight. When I went to login just a few minutes ago typo kept telling me that my login was unsuccessful.

I knew someone had this problem a few days ago. Im putting the answer here just incase someone hasn’t found the mailing list.
$ ./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

Using this I was able to reset my password back to its original value, and the fact that I’m posting this shows that it worked.

This entry was posted on Fri, 09 Dec 2005 07:22:00 GMT . You can follow any any response to this entry through the Atom feed. You can leave a comment or a trackback from your own site.
Tags , ,


Trackbacks

Use the following link to trackback from your own site:
http://chris.heartsong.biz/trackbacks?article_id=lost-login&day=09&month=12&year=2005

Comments

Leave a response

Leave a comment