Patch only required on the login page

This commit is contained in:
Joseph Garrone
2024-06-12 22:17:58 +02:00
parent 7c19e1f1f7
commit 59807c1bb0

View File

@ -331,6 +331,8 @@ function decodeHtmlEntities(htmlStr){
<#list fieldNames as fieldName> <#list fieldNames as fieldName>
<#-- See: https://github.com/keycloakify/keycloakify/issues/217 --> <#-- See: https://github.com/keycloakify/keycloakify/issues/217 -->
<#if pageId === "login.ftl" >
<#if fieldName == "username"> <#if fieldName == "username">
<#local jsFunctionCode += "if(fieldName === 'username' || fieldName === 'password' ){ "> <#local jsFunctionCode += "if(fieldName === 'username' || fieldName === 'password' ){ ">
@ -350,6 +352,8 @@ function decodeHtmlEntities(htmlStr){
<#continue> <#continue>
</#if> </#if>
</#if>
<#local jsFunctionCode += "if(fieldName === '" + fieldName + "'){ "> <#local jsFunctionCode += "if(fieldName === '" + fieldName + "'){ ">
<#if messagesPerField.exists('${fieldName}')> <#if messagesPerField.exists('${fieldName}')>
@ -375,6 +379,7 @@ function decodeHtmlEntities(htmlStr){
<#list fieldNames as fieldName> <#list fieldNames as fieldName>
<#-- See: https://github.com/keycloakify/keycloakify/issues/217 --> <#-- See: https://github.com/keycloakify/keycloakify/issues/217 -->
<#if pageId === "login.ftl" >
<#if fieldName == "username"> <#if fieldName == "username">
<#local jsFunctionCode += "if(fieldName === 'username' || fieldName === 'password' ){ "> <#local jsFunctionCode += "if(fieldName === 'username' || fieldName === 'password' ){ ">
@ -393,6 +398,7 @@ function decodeHtmlEntities(htmlStr){
<#if fieldName == "password"> <#if fieldName == "password">
<#continue> <#continue>
</#if> </#if>
</#if>
<#local jsFunctionCode += "if(fieldName === '" + fieldName + "' ){ "> <#local jsFunctionCode += "if(fieldName === '" + fieldName + "' ){ ">