Skip to content

Commit

Permalink
secure password
Browse files Browse the repository at this point in the history
  • Loading branch information
smellman committed Jul 9, 2024
1 parent c0586f9 commit f5c62c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ config.good_job.max_threads = ENV.fetch("GOOD_JOB_MAX_THREADS", 2).to_i
config.good_job.poll_interval = ENV.fetch("GOOD_JOB_POLL_INTERVAL", 10).to_i
# Basic auth example
GoodJob::Engine.middleware.use(Rack::Auth::Basic) do |username, password|
ActiveSupport::SecurityUtils.secure_compare("test", username) &
ActiveSupport::SecurityUtils.secure_compare("goodjob", password)
ActiveSupport::SecurityUtils.secure_compare("goodjob", username) &
ActiveSupport::SecurityUtils.secure_compare(ENV.fetch("GOOD_JOB_BASIC_AUTH_PASSWORD", "goodjob"), password)
end
```
5. Restart your Redmine instance

0 comments on commit f5c62c8

Please sign in to comment.