exit with error if secret_token ist empty

pull/156/head
Christian Ratz 12 years ago
parent 584b58f96a
commit 82fef8e962
  1. 3
      config/initializers/secret_token.rb

@ -19,7 +19,8 @@ else
end
if OpenProject::Application.config.secret_token.nil?
puts "Warning: secret_token empty!"
puts "Error: secret_token empty!"
puts "Please set it with ENV variable 'SECRET_TOKEN' or "
puts "run 'rake generate_secret_token'"
exit 1
end

Loading…
Cancel
Save