From 1d7f07fc53c78a7cf7699ac0169ca42b31722413 Mon Sep 17 00:00:00 2001 From: Christian Ja Date: Mon, 2 Dec 2024 12:12:52 +0100 Subject: [PATCH] Port required changes for reCAPTCHA to the new login theme (#35474) Closes #35232 Signed-off-by: Christian Janker --- .../theme/keycloak.v2/login/register.ftl | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 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 baa776059c84..60b189b905e4 100755 --- a/themes/src/main/resources/theme/keycloak.v2/login/register.ftl +++ b/themes/src/main/resources/theme/keycloak.v2/login/register.ftl @@ -25,17 +25,32 @@ <@registerCommons.termsAcceptance/> - <#if recaptchaRequired??> + <#if recaptchaRequired?? && (recaptchaVisible!false)>
-
+
-
- -
+ <#if recaptchaRequired?? && !(recaptchaVisible!false)> + +
+ +
+ <#else> +
+ +
+ +