fixed qq认证密钥读取错误

This commit is contained in:
xxq250 2022-12-09 17:54:34 +08:00
parent 69065d1e5a
commit 309ba151be
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" }