fixed qq认证密钥读取错误
This commit is contained in:
parent
69065d1e5a
commit
309ba151be
|
@ -14,7 +14,7 @@ OmniAuth.config.on_failure = Proc.new { |env|
|
|||
|
||||
Rails.application.config.middleware.use OmniAuth::Builder do
|
||||
if config.dig("oauth", "qq")
|
||||
provider :qq, config.dig("oauth", "qq", "appid"), config.dig("oauth", "github", "secret"), { provider_ignores_state: true }
|
||||
provider :qq, config.dig("oauth", "qq", "appid"), config.dig("oauth", "qq", "secret"), { provider_ignores_state: true }
|
||||
end
|
||||
if config.dig("oauth", "github").present?
|
||||
provider :github, config.dig("oauth", "github", "appid"), config.dig("oauth", "github", "secret"), { provider_ignores_state: true, scope: "user:email" }
|
||||
|
|
Loading…
Reference in New Issue