X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/87d55912e246153239e5f4f24dd635a110a53119..549a46c867002c974224bc86cc5933edd8acef94:/app/views/application/_auth_providers.html.erb?ds=sidebyside diff --git a/app/views/application/_auth_providers.html.erb b/app/views/application/_auth_providers.html.erb index c77a3ed3e..f6665cefe 100644 --- a/app/views/application/_auth_providers.html.erb +++ b/app/views/application/_auth_providers.html.erb @@ -1,15 +1,8 @@ -<% prefered_auth_button_available = false %> -<% %w[google facebook microsoft github wikipedia].each do |provider| %> - <% if Settings.key?("#{provider}_auth_id".to_sym) -%> - <% if @preferred_auth_provider == provider %> - <% prefered_auth_button_available = true %> - <% end %> - <% end -%> -<% end -%> +<% prefered_auth_button_available = @preferred_auth_provider != "openid" && Auth.providers.value?(@preferred_auth_provider) %>