mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-21 22:44:23 -04:00
security fix: check ENV for rails secret token
This commit is contained in:
1 parent
50e0a88992
commit
5b2dbc571e
1 file changed
+1
-1
@@ -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.
|
||||
Growstuff::Application.config.secret_token = '6b61c7a7c5f5684945c445d80ea3df725ee2bb3101a3a57a4bec349657e092a562aa714cb4706c038d7fb1bdbd497c4b103aa1247f3bdf79044e03363ea8ee50'
|
||||
Growstuff::Application.config.secret_token = ENV['RAILS_SECRET_TOKEN'] || "this is not a real secret token but it's here to make life easier for developers"
|
||||
Reference in new issue
Block a user