Browse files

[security] optionally specify a new secret token using RAILS_SECRET_T…

…OKEN
  • Loading branch information...
1 parent dfc18af commit 7827beb1830ad050df41e68ce070ab09e14f9a12 @steakknife steakknife committed Mar 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 config/initializers/secret_token.rb
View
2 config/initializers/secret_token.rb
@@ -4,4 +4,4 @@
# 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.
-Selfstarter::Application.config.secret_token = '686a073cf783e29dee02cb7544762d17a7c769acf7baa148a0d9726a39e45123532418f9ce7cd3def2ca0e3d5bff9d0b9ffd41f19b0c6b6dd9d0cc10b77fc5ae'
+Selfstarter::Application.config.secret_token = ENV['RAILS_SECRET_TOKEN'] || '686a073cf783e29dee02cb7544762d17a7c769acf7baa148a0d9726a39e45123532418f9ce7cd3def2ca0e3d5bff9d0b9ffd41f19b0c6b6dd9d0cc10b77fc5ae'

0 comments on commit 7827beb

Please sign in to comment.