2010-06-10 22:07:59 +00:00
|
|
|
# Be sure to restart your server when you modify this file.
|
2011-03-21 10:37:44 +00:00
|
|
|
require 'digest/sha1'
|
2010-06-10 22:07:59 +00:00
|
|
|
|
|
|
|
# Your secret key for verifying the integrity of signed cookies.
|
|
|
|
# If you change this key, all old signed cookies will become invalid!
|
2010-07-23 20:09:54 +00:00
|
|
|
# Make sure the secret is at least 30 characters and all random,
|
2010-06-10 22:07:59 +00:00
|
|
|
# no regular words or you'll be exposed to dictionary attacks.
|
2011-03-21 10:37:44 +00:00
|
|
|
token = ENV['BUSHIDO_SALT'] || 'aa84844b97e90edda8e005a686d82c3bef1f8e20a1255301f1d0886fc592a45ef2393d64b0c3d3ea858b1f6406ad6f15305666264716a79fcfa17de93ad0d69d'
|
|
|
|
Rails.application.config.secret_token = Digest::SHA1.hexdigest(token)
|