Auth: Hide captcha when commitcaptcha is disabled

This commit is contained in:
Ilya Prokopenko 2023-05-26 16:26:19 +07:00
parent 4213217063
commit 8f23720c1f
No known key found for this signature in database
GPG key ID: 7736BBBB05F14A56

View file

@ -101,6 +101,7 @@
</select>
</td>
</tr>
{if !(strpos(captcha_template(), 'verified'))}
<tr>
<td class="regform-left">
<span class="nobold">CAPTCHA: </span>
@ -109,6 +110,7 @@
{captcha_template()|noescape}
</td>
</tr>
{/if}
</table>
<div style="margin-left: 100px; margin-right: 100px; text-align: center;">
<input type="hidden" name="hash" value="{$csrfToken}" />
@ -130,10 +132,7 @@
<td>
{_registration_disabled_info}
{if OPENVK_ROOT_CONF['openvk']['preferences']['registration']['disablingReason']}
<br/>
<br/>
{_admin_banned_link_reason}:
<br>
<br/><br/>{_admin_banned_link_reason}:<br>
<b>{php echo OPENVK_ROOT_CONF['openvk']['preferences']['registration']['disablingReason']}</b>
{/if}
</td>