method to get the enabled_button_based_providers
This commit is contained in:
parent
cf30044314
commit
8d26836e94
|
@ -38,6 +38,12 @@ module AuthHelper
|
|||
auth_providers.reject { |provider| form_based_provider?(provider) }
|
||||
end
|
||||
|
||||
def enabled_button_based_providers
|
||||
disabled_providers = current_application_settings.disabled_oauth_sign_in_sources || []
|
||||
|
||||
button_based_providers.map(&:to_s) - disabled_providers
|
||||
end
|
||||
|
||||
def provider_image_tag(provider, size = 64)
|
||||
label = label_for_provider(provider)
|
||||
|
||||
|
|
Loading…
Reference in New Issue