#28 Add devise secure key

This commit is contained in:
2015-11-12 17:10:50 +08:00
parent 7633baad1b
commit 154e959e8d
+1 -1
View File
@@ -264,7 +264,7 @@ Devise.setup do |config|
# When using OmniAuth, Devise cannot automatically set OmniAuth path,
# so you need to do it manually. For the users scope, it would be:
# config.omniauth_path_prefix = '/my_engine/users/auth'
config.secret_key = 'c89aa8ac3d310ef10ab166705620f3acb80f5fc5d04041981db73fd0cca60efd3c3cb497bd489cbe31d345a9503c20d6d930c5958f20f38417944c467f978f27'
if Rails.env.production?
config.omniauth :weibo, '1154990879', '6b901a95751bf222fbe5c51451da5078', :scope => 'user,public_repo'
else