Skip to content

Commit

Permalink
Fix for properly showing messages in Keycloak templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Miggets7 committed Nov 23, 2021
1 parent dab08c7 commit 02a1180
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions themes/openremote/account/template.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
<div class="section">
<div class="card-panel">
<#if message.type=='success' ><i class="material-icons green-text">check_circle</i><span
class="green-text">{kcSanitize(message.summary)?no_esc}</span></#if>
class="green-text">${kcSanitize(message.summary)?no_esc}</span></#if>
<#if message.type=='error' ><i class="material-icons red-text">error</i><span
class="red-text">{kcSanitize(message.summary)?no_esc}</span></#if>
class="red-text">${kcSanitize(message.summary)?no_esc}</span></#if>
</div>
</div>
</#if>
Expand Down
8 changes: 4 additions & 4 deletions themes/openremote/login/template.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@
<div class="section">
<div class="card-panel">
<#if message.type=='success' ><i class="material-icons green-text">check_circle</i><span
class="green-text">{kcSanitize(message.summary)?no_esc}</span></#if>
class="green-text">${kcSanitize(message.summary)?no_esc}</span></#if>
<#if message.type=='warning' ><i class="material-icons orange-text">warning</i><span
class="orange-text">{kcSanitize(message.summary)?no_esc}</span></#if>
class="orange-text">${kcSanitize(message.summary)?no_esc}</span></#if>
<#if message.type=='error' ><i class="material-icons red-text">error</i><span
class="red-text">{kcSanitize(message.summary)?no_esc}</span></#if>
class="red-text">${kcSanitize(message.summary)?no_esc}</span></#if>
<#if message.type=='info' ><i class="material-icons blue-text">info</i><span
class="blue-text">{kcSanitize(message.summary)?no_esc}</span></#if>
class="blue-text">${kcSanitize(message.summary)?no_esc}</span></#if>
</div>
</div>
</#if>
Expand Down

0 comments on commit 02a1180

Please sign in to comment.