Skip to content

Commit

Permalink
Update devise secret key config
Browse files Browse the repository at this point in the history
  • Loading branch information
Moncef Belyamani committed Nov 13, 2013
1 parent 07fd408 commit d26d1ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -246,5 +246,9 @@

# This was necessary after upgrading Devise from 3.0.3 to 3.1.0
# http://blog.plataformatec.com.br/2013/08/devise-3-1-now-with-more-secure-defaults/
config.secret_key = ENV['DEVISE_SECRET_KEY']
if Rails.env.development? || Rails.env.test?
config.secret_key = '8615cc909c91b598763a62a225815abfd728327063baf6a1c15bbc7aacc747fd91c81e9a03b003af95c5a856de844738d26ae057b014ae6c2807c4f9168008ab'
else
config.secret_key = ENV['DEVISE_SECRET_KEY'] or raise "missing DEVISE_SECRET_KEY"
end
end

0 comments on commit d26d1ec

Please sign in to comment.