fixed qq认证密钥读取错误

This commit is contained in:
xxq250 2022-12-09 17:55:09 +08:00
parent 99a117f9c9
commit 911fb2712a
1 changed files with 1 additions and 1 deletions

View File

@ -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" }