From 572cfc8ea4c3502291a2bb9d76e52350f4954fe2 Mon Sep 17 00:00:00 2001 From: NeverMin Date: Sat, 30 Sep 2017 16:21:16 +0800 Subject: [PATCH] fixed db migrate issue --- config/initializers/omniauth.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb index daf75ac0b..0b5491901 100644 --- a/config/initializers/omniauth.rb +++ b/config/initializers/omniauth.rb @@ -47,10 +47,6 @@ Rails.application.config.middleware.use OmniAuth::Builder do } # weibo database connect - provider :weibo_database, 'not_change_will_be_set_by_database', 'not_change_will_be_set_by_database', { - token_params: { - redirect_uri: "#{Setting.get('http_type')}://#{Setting.get('fqdn')}/auth/weibo/callback" - }, - } + provider :weibo_database, 'not_change_will_be_set_by_database', 'not_change_will_be_set_by_database' end