Consider OmniAuth test_mode in omniauth_configured

There are not secrets for providers in test_mode...
This commit is contained in:
Henne Vogelsang 2022-02-17 16:39:45 +01:00
parent 2e21079991
commit 350b1ebbbe
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6

View file

@ -10,6 +10,8 @@ module UsersHelper
end end
def omniauth_configured def omniauth_configured
return Devise.omniauth_providers if OmniAuth.config.test_mode
providers = [] providers = []
Devise.omniauth_providers.each do |provider| Devise.omniauth_providers.each do |provider|
provider_key = "#{provider}_key" provider_key = "#{provider}_key"