mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Consider OmniAuth test_mode in omniauth_configured
There are not secrets for providers in test_mode...
This commit is contained in:
parent
2e21079991
commit
350b1ebbbe
1 changed files with 2 additions and 0 deletions
|
|
@ -10,6 +10,8 @@ module UsersHelper
|
|||
end
|
||||
|
||||
def omniauth_configured
|
||||
return Devise.omniauth_providers if OmniAuth.config.test_mode
|
||||
|
||||
providers = []
|
||||
Devise.omniauth_providers.each do |provider|
|
||||
provider_key = "#{provider}_key"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue