aboutsummaryrefslogtreecommitdiffstats
path: root/config/initializers/secret_token.rb
blob: 78b86f92cffe71dad7a25a5c1ecc0edb8c442d47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- encoding : utf-8 -*-
# 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.

# Just plopping an extra character on the secret_token so that any sessions on upgrading from
# Rails 2 to Rails 3 version of Alaveteli are invalidated.
# See http://blog.carbonfive.com/2011/03/19/rails-3-upgrade-tip-invalidate-session-cookies/

Alaveteli::Application.config.secret_token = "3" + AlaveteliConfiguration::cookie_store_session_secret