Generate fake secret token when precompiling.

pull/1775/head
Cyril Rohr 10 years ago committed by kgalli
parent 1bad29d78c
commit 2d0607f96e
  1. 2
      config/initializers/secret_token.rb

@ -41,7 +41,7 @@ begin
rescue
end
OpenProject::Application.config.secret_token = if Rails.env.development? or Rails.env.test?
OpenProject::Application.config.secret_token = if Rails.env.development? or Rails.env.test? or Rails.groups.include?('assets')
('x' * 30) # meets minimum requirement of 30 chars long
else
ENV['SECRET_TOKEN'] || secret_token

Loading…
Cancel
Save