fix: use providerId instead of alias for social provider icons

Identity provider icons were only displayed when the alias exactly
matched predefined values. This fixes the issue by checking the
providerId (provider type) instead of the alias, allowing custom
aliases while maintaining correct icon display.

Closes #43515

Signed-off-by: Bernat Moix <bmoix@bmoix.io>
This commit is contained in:
Bernat Moix 2025-10-16 09:47:19 +02:00 committed by Marek Posolda
parent 9c86eae7ed
commit 733dfdbc1c

View File

@ -14,7 +14,7 @@
<#if p.iconClasses?has_content>
<span class="${p.iconClasses!}">${p.displayName!}</span>
<#else>
<#switch p.alias>
<#switch p.providerId>
<#case "google">
<svg viewBox="0 0 48 48" class="google" aria-hidden="true">
<path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"></path>