From e08141543bf3d9f218f0216c26116c6980f2d10f Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Thu, 12 Dec 2024 12:05:03 +0100 Subject: [PATCH] fix merge error Signed-off-by: Erik Jan de Wit --- .../theme/keycloak.v2/login/register.ftl | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/themes/src/main/resources/theme/keycloak.v2/login/register.ftl b/themes/src/main/resources/theme/keycloak.v2/login/register.ftl index fb38389246d9..f8a10fce8407 100755 --- a/themes/src/main/resources/theme/keycloak.v2/login/register.ftl +++ b/themes/src/main/resources/theme/keycloak.v2/login/register.ftl @@ -64,35 +64,6 @@ <@validator.templates/> <@validator.script field="password"/> - - - { name: "passwordStrength", policy: { value: ${passwordPolicies.passwordStrength?then(0, -1) }, error: "passwordStrength"} } - if (activePolicies.filter(p => p.name === "passwordStrength").length !== 0) { - document.getElementById("input-error-client-password").appendChild(document.querySelector("#passwordStrengthTemplate").content.cloneNode(true)); - } - - if (typeof e !== "string") { - const percentage = (e.score + 1) * 20; - document.getElementById("indicator").style.width = percentage + "%"; - document.getElementById("bar").classList.remove("pf-m-danger"); - document.getElementById("bar").classList.remove("pf-m-success"); - if (percentage < 40) { - document.getElementById("bar").classList.add("pf-m-danger"); - } - if (percentage >= 80) { - document.getElementById("bar").classList.add("pf-m-success"); - } - return; - }