Commit d943e5f6 authored by Andrei Gliga's avatar Andrei Gliga

method to check if oauth button based providers are enabled

parent 8d26836e
...@@ -44,6 +44,10 @@ module AuthHelper ...@@ -44,6 +44,10 @@ module AuthHelper
button_based_providers.map(&:to_s) - disabled_providers button_based_providers.map(&:to_s) - disabled_providers
end end
def button_based_providers_enabled?
!enabled_button_based_providers.empty?
end
def provider_image_tag(provider, size = 64) def provider_image_tag(provider, size = 64)
label = label_for_provider(provider) 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