[typo] can't login after upgrade

Dick Davies rasputnik at gmail.com
Wed Nov 23 11:24:32 EST 2005


On 23/11/05, jeremy*pinnix <jpinnix.alt at gmail.com> wrote:
> Dick,
>
> 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".

Yeah, that works for 2.6.0 - I haven't bumped to SVN yet
(waiting for Scott to settle in at Google first :D )

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

Cool.


--
Rasputin :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/



More information about the Typo-list mailing list