Open link in a new tab

Content

Expand project menu

Cannot login to admin

Hello,

I had installed the openproject and I was able to login for the first time. After that I always get

“Invalid user or password or the account is blocked due to multiple failed login attempts. If so, it will be unblocked automatically in a short time.
”
I had found on forum to run the command bundle exec rake db:seed but the output is

Could not locate Gemfile

any ideea ?

Message actions

After your first login, the admin user is forced to choose a new password. I assume that you did suceed to login the first time and changed the password?

However, changing the password from command line is easy.

Spawn a irb shell (Manual installation)

cd </path/to/openproject>
RAILS_ENV=production bundle exec rails c

Spawn a irb shell (Packaged installation)

openproject run console

In that console, execute:

admin = User.find_by(login: 'admin')
admin.password = 'mynewpassword1234' # Must confirm to the password rules you defined!
admin.password_confirmation = 'mynewpassword1234'

admin.save! # Watch the output for errors

And then login with the new credentials.

Best,
Oliver