mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-28 21:08:48 +01:00
Fallback to randomly generated token, which is fine for development and test mode. (Sessions will be invalidated when the server reboots) Thanks @brynary
7 lines
No EOL
420 B
Ruby
7 lines
No EOL
420 B
Ruby
# 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.
|
|
Tracksapp::Application.config.secret_token = SITE_CONFIG["secret_token"] || SecureRandom.hex(64) |