summaryrefslogtreecommitdiff
path: root/config/initializers/secret_token.rb
blob: bdd9b1c6e860df6230356e4030377bb1693241e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Be sure to restart your server when you modify this file.

# Your secret key for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.

if token = APP_CONFIG[:secret_token]
  LeapWeb::Application.config.secret_token = token
else
  raise StandardError.new("No secret_token defined in config/config.yml - please provide one.")
end