From c469dee158371e0a3c41a3af233ce787a77de0c5 Mon Sep 17 00:00:00 2001 From: garronej Date: Mon, 28 Aug 2023 18:35:37 +0200 Subject: [PATCH] Accomodate https://github.com/keycloakify/keycloakify/pull/65#issuecomment-991896344 and #406 --- .../ftl_object_to_js_code_declaring_an_object.ftl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bin/keycloakify/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl b/src/bin/keycloakify/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl index d4cfae5eb..06d3f0b50 100644 --- a/src/bin/keycloakify/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl +++ b/src/bin/keycloakify/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl @@ -484,16 +484,15 @@ <#continue> - <#if key == "attemptedUsername" && are_same_path(path, ["auth"])> - + <#if pageId == "register.ftl" && key == "attemptedUsername" && are_same_path(path, ["auth"])> <#attempt> <#-- https://github.com/keycloak/keycloak/blob/3a2bf0c04bcde185e497aaa32d0bb7ab7520cf4a/themes/src/main/resources/theme/base/login/template.ftl#L63 --> + <#-- https://github.com/keycloakify/keycloakify/discussions/406 --> <#if !(auth?has_content && auth.showUsername() && !auth.showResetCredentials())> <#continue> <#recover> - <#attempt>