From 02a1180a80eb25ba302b5efa038bf3f1b4047526 Mon Sep 17 00:00:00 2001 From: Michael Rademaker Date: Tue, 23 Nov 2021 15:52:40 +0100 Subject: [PATCH] Fix for properly showing messages in Keycloak templates --- themes/openremote/account/template.ftl | 4 ++-- themes/openremote/login/template.ftl | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/themes/openremote/account/template.ftl b/themes/openremote/account/template.ftl index 5792c1a..fb26ac8 100644 --- a/themes/openremote/account/template.ftl +++ b/themes/openremote/account/template.ftl @@ -48,9 +48,9 @@
<#if message.type=='success' >check_circle{kcSanitize(message.summary)?no_esc} + class="green-text">${kcSanitize(message.summary)?no_esc} <#if message.type=='error' >error{kcSanitize(message.summary)?no_esc} + class="red-text">${kcSanitize(message.summary)?no_esc}
diff --git a/themes/openremote/login/template.ftl b/themes/openremote/login/template.ftl index 71313d8..3b76c06 100644 --- a/themes/openremote/login/template.ftl +++ b/themes/openremote/login/template.ftl @@ -65,13 +65,13 @@
<#if message.type=='success' >check_circle{kcSanitize(message.summary)?no_esc} + class="green-text">${kcSanitize(message.summary)?no_esc} <#if message.type=='warning' >warning{kcSanitize(message.summary)?no_esc} + class="orange-text">${kcSanitize(message.summary)?no_esc} <#if message.type=='error' >error{kcSanitize(message.summary)?no_esc} + class="red-text">${kcSanitize(message.summary)?no_esc} <#if message.type=='info' >info{kcSanitize(message.summary)?no_esc} + class="blue-text">${kcSanitize(message.summary)?no_esc}