From 8f23720c1fb4f5a3bd1d0af933ba4b71faff23ca Mon Sep 17 00:00:00 2001 From: Ilya Prokopenko Date: Fri, 26 May 2023 16:26:19 +0700 Subject: [PATCH] Auth: Hide captcha when commitcaptcha is disabled --- Web/Presenters/templates/Auth/Register.xml | 29 +++++++++++----------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/Web/Presenters/templates/Auth/Register.xml b/Web/Presenters/templates/Auth/Register.xml index a279e930..23857633 100644 --- a/Web/Presenters/templates/Auth/Register.xml +++ b/Web/Presenters/templates/Auth/Register.xml @@ -101,14 +101,16 @@ - - - CAPTCHA: - - - {captcha_template()|noescape} - - + {if !(strpos(captcha_template(), 'verified'))} + + + CAPTCHA: + + + {captcha_template()|noescape} + + + {/if}
@@ -120,21 +122,18 @@
{else} -

{_registration_closed}

+

{_registration_closed}

- {_registration_closed} + {_registration_closed} {_registration_disabled_info} {if OPENVK_ROOT_CONF['openvk']['preferences']['registration']['disablingReason']} -
-
- {_admin_banned_link_reason}: -
- {php echo OPENVK_ROOT_CONF['openvk']['preferences']['registration']['disablingReason']} +

{_admin_banned_link_reason}:
+ {php echo OPENVK_ROOT_CONF['openvk']['preferences']['registration']['disablingReason']} {/if}