I don’t see why the email is invalid? All accounts are experiencing the same problem. Or am I missing what you meant?
I tried this to change the password with no luck, it returned false in the console. @admin = User.find_by_login("admin") @admin.password = "mynewpass" @admin.save I noticed in the users_controller.rb it lists reset_password under ssl_required. This site isn’t running under ssl, could that be part of the issue? Matt From: gitorious@googlegroups.com [mailto:gitori...@googlegroups.com] On Behalf Of Marius Mårnes Mathiesen Sent: Wednesday, January 05, 2011 3:07 AM To: gitorious@googlegroups.com Subject: Re: [gitorious] password reset On Tue, Jan 4, 2011 at 10:41 PM, zid <matthew.bow...@kitware.com> wrote: My local gitorious install works great, but the password reset has never worked. I'll include debug info below, but I've tried the post to change the admin password, but using a user.save instead. It returns false. Is there a way to change a users password through the console and any ideas on how to debug the password reset failures? It just complains of invalid email and redirects to the forgot password page. First of all: the invalid email is probably what makes this fail; Rails will not save a record with validation errors, and "resetting" the password sets a field in the User record. If the email should be valid and Gitorious says it isn't: what did we miss out on? Further: I don't know how deeply you studied the code, but updating the password is achieved by calling password= and password_confirmation= on a User record and saving it. This will hash the password and update the database record. If no validation errors occur, that is... Cheers, - Marius -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com