diff --git a/geonode/people/templatetags/socialaccount_extra.py b/geonode/people/templatetags/socialaccount_extra.py index 42c8e99981b..3daffb8fa4d 100644 --- a/geonode/people/templatetags/socialaccount_extra.py +++ b/geonode/people/templatetags/socialaccount_extra.py @@ -15,10 +15,10 @@ def get_user_social_providers(user): @register.simple_tag def get_other_social_providers(user): user_providers = get_user_social_providers(user) - user_provider_names = [p.name.lower() for p in user_providers] + user_provider_names = [p.id.lower() for p in user_providers] other_providers = [] - for provider in providers.registry.get_list(): - if provider.name.lower() not in user_provider_names: + for provider in providers.registry.get_class_list(): + if provider.id.lower() not in user_provider_names: other_providers.append(provider) return other_providers diff --git a/geonode/templates/socialaccount/snippets/provider_list.html b/geonode/templates/socialaccount/snippets/provider_list.html index 89df15609fc..1d3cf1d09fa 100644 --- a/geonode/templates/socialaccount/snippets/provider_list.html +++ b/geonode/templates/socialaccount/snippets/provider_list.html @@ -5,15 +5,15 @@ {% get_providers as socialaccount_providers %} {% for provider in socialaccount_providers %} - {% if provider.id == "openid" %} + {% if provider.id == "openid_connect" %} {% for brand in provider.get_brands %} - + {{brand.name}} {% endfor %} {% endif %}