Skip to content

Commit

Permalink
Set session secret for security purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
lisahamm committed Mar 24, 2015
1 parent 68a94fc commit 070f378
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tic_tac_toe_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@


class TicTacToeController < Sinatra::Base
enable :sessions
configure do
enable :sessions
set :session_secret, ENV['SESSION_SECRET'] || 'session secret'
end

use Rack::Flash
include GameHelpers

Expand Down

0 comments on commit 070f378

Please sign in to comment.