X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/05e533571649f846ee09e6e81431b5fc5fe3c01a..fee09d5153a272500b847a008c770d19f05e0812:/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) %>