Patch only required on the login page
This commit is contained in:
@ -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 + "' ){ ">
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user