Hello again.  I am finding a lot of trouble to do a simple thing.  

I am trying to change the admin password to one of my apps.  I do not want 
to delete the user.

Current hobo version is 2.2.4.

I am trying to do it in various ways, as developer through command line and 
as user, with no success.  

Maybe I am a little newbie in authentication things, but I've found no 
documentation of how to do it in two hours of googling.

I've found no way to do it from the user profile or account page.
Then I tried to do it from the forgot password.  I think in the old days 
the log files were showing the link, in the new days I had to configure the 
e-mail (i do not need it because we are a little team) in order to get that 
link.

When finally got the link to reset the password, I've found this:

*Started PUT "/users/1-txinto/reset_password" for 10.0.2.2 at 2016-08-23 
15:05:03 +0100*
*Processing by UsersController#do_reset_password as HTML*
*  Parameters: 
{"page_path"=>"/users/1-txinto/reset_password_from_email/76d61afba8de036208fecc3e87f8012b7ee15ed2",
 
"authenticity_token"=>"6Y5MjBqPnqnBUAvf3NWGR8N/Sg/4yW2NCJUei2tw5+8=", 
"key"=>"76d61afba8de036208fecc3e87f8012b7ee15ed2", 
"user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, 
"id"=>"1-txinto"}*
*  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? 
LIMIT 1  [["id", "1-txinto"]]*
*Completed 500 Internal Server Error in 14ms*

*ActiveRecord::UnknownAttributeError (unknown attribute: password):*
*  activerecord (3.2.13) lib/active_record/attribute_assignment.rb:88:in 
`block in assign_attributes'*
*  activerecord (3.2.13) lib/active_record/attribute_assignment.rb:78:in 
`each'*
*  activerecord (3.2.13) lib/active_record/attribute_assignment.rb:78:in 
`assign_attributes'*
*  activerecord (3.2.13) lib/active_record/attribute_assignment.rb:36:in 
`attributes='*
*  hobo (2.0.1) lib/hobo/model/lifecycles/actions.rb:96:in `prepare!'*
*  hobo (2.0.1) lib/hobo/model/lifecycles/transition.rb:49:in `block in 
run!'*
*  hobo (2.0.1) lib/hobo/model/permissions.rb:167:in `with_acting_user'*
*  hobo (2.0.1) lib/hobo/model/lifecycles/transition.rb:48:in `run!'*
*  hobo (2.0.1) lib/hobo/controller/model.rb:762:in `do_transition_action'*
*  hobo (2.0.1) lib/hobo/controller/user_base.rb:126:in 
`hobo_do_reset_password'*
*  hobo (2.0.1) lib/hobo/controller/user_base.rb:43:in `do_reset_password'*
*  actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in 
`send_action'*
*  actionpack (3.2.13) lib/abstract_controller/base.rb:167:in 
`process_action'*
*  actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in 
`process_action'*

So, my questions are:

- Is there a bug or maybe a bad configuration of my app?
- Is there a way to do the change directly in the database?
- Is there a safe way to do it through command line? (the ones I found and 
tested did not work).

Thank you in advance.

Tx.


-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to