Commit 8d26836e authored by Andrei Gliga's avatar Andrei Gliga

method to get the enabled_button_based_providers

parent cf300443
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment