Open link in a new tab

Content

Expand project menu

Forget the admin user password in open project 3.0

Hello guys,

i forget my admin password. can someone tell me how to reset admin password in open project. please help me

Message actions

Hi Anuj,

there are a few options to change your password:

1. check if you have enabled the ‘forget password’ function if activated you can find a link for password reset on the login page or in the login dropdown.

2. if not enabled you can enable this function in the rails console by running the following commands:

RAILS_ENV=production bundle exec rails c
Setting.lost_password="1"

3. Change the users password with rails console. This is not recommended because it is possible that the plain password is stored in the history of the console.

RAILS_ENV=production bundle exec rails c
u = User.find_by_login "your login name"     (eg. u = User.find_by_login "admin")
u.password=u.password_confirmation='my new password'
u.save

Than login with the new password.

Best
Ratzi

Message actions

thank you very much christian for help

i followed your 3 step now my open project is not running on 127.0.0.1:8080. i have restarted all services(httpd,postgres). it give me this error

Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your OpenProject administrator for assistance.

If you are the OpenProject administrator, check your log files for details about the error.

Message actions

You’re welcome.

That’s weird because option 2 and 3 only change a record in the database which work without a restart. I assumed also that you run OpenProject in production environment but now it looks like you run it in development.

Can you please check your log file for more information? (should be located in ‘log/development.log’)

Best
Ratzi

Message actions

thank you christian for the help. i will check log files

Message actions

How do I reset my admin password and login in open project 8.2? I tested what was recommended above and did not work. I installed the open project about 2 months ago. My computer was damaged now that I got it, I can not remember the admin login and password. I've never gotten in through my localhost, but right now it's very important for me to test LDAP integration.