X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/87d55912e246153239e5f4f24dd635a110a53119..010f0e1aaf6439c053265fbcfe6381d4d4f39b5b:/app/views/application/_auth_providers.html.erb diff --git a/app/views/application/_auth_providers.html.erb b/app/views/application/_auth_providers.html.erb index c77a3ed3e..b7fb5ba4d 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) %>