Skip to content

Commit

Permalink
Fixes #37061 - In DEV env generate admin with 'changeme' password
Browse files Browse the repository at this point in the history
By default the admin password is a random string,
which makes sense from a security point of view,
but in the DEV environment, the password can be something
easy to remember, like `changeme`.

This reduces the necessity of resetting the password in UI or
with the `rails permissions:reset` task, which is good
especially for newcomers who are trying Foreman for the first time.
  • Loading branch information
stejskalleos committed Feb 19, 2024
1 parent 23d7669 commit 59677e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions developer_docs/foreman_dev_setup.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Run the following command:
gem install pg -v '{PG_VERSION}' -- --with-pg-config=/usr/pgsql-13/bin/pg_config
....

*Good to Notice:*
*Good to Notice:*
Foreman uses Bundler to install dependencies and get up and running. This is the preferred way to get Foreman if you want to benefit from the latest improvements. By using the git repository you can also upgrade more easily.

[[Database]]
Expand Down Expand Up @@ -93,7 +93,7 @@ Set up database schema, precompile assets and locales:
....
bundle exec rake db:create # if not already created
bundle exec rake db:migrate
bundle exec rake db:seed
SEED_ADMIN_PASSWORD=your_pass bundle exec rake db:seed
....

The db:seed step will print out the default admin password, record this in order to log in later.
Expand Down

0 comments on commit 59677e7

Please sign in to comment.