Normalize legacy SSO icon values before validation (#955)

This commit is contained in:
Juan José Mata
2026-02-10 23:14:58 +01:00
committed by GitHub
parent 589588026a
commit 19aeac3a84
3 changed files with 45 additions and 2 deletions

View File

@@ -53,7 +53,8 @@
<div class="flex items-center justify-between bg-container p-4 shadow-border-xs rounded-lg">
<div class="flex items-center gap-3">
<div class="w-9 h-9 shrink-0 bg-surface rounded-full flex items-center justify-center">
<%= icon identity.provider_config&.dig(:icon) || "key", class: "w-5 h-5 text-secondary" %>
<% icon_name = identity.provider_config&.dig(:icon).presence || "key" %>
<%= icon icon_name, class: "w-5 h-5 text-secondary" %>
</div>
<div>
<p class="font-medium text-primary"><%= identity.provider_config&.dig(:label) || identity.provider.titleize %></p>