mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
Lets support only ReCaptcha v3
Too much mess ;)
This commit is contained in:
@@ -46,20 +46,7 @@
|
||||
<label for="remember_me"> Remember me</label></td>
|
||||
</tr>
|
||||
{% if config.recaptcha_enabled %}
|
||||
{% if config.recaptcha_type == 'v3' %}
|
||||
<input type="hidden" name="g-recaptcha-response" id="g-recaptcha-response" />
|
||||
{% elseif config.recaptcha_type == 'v2-invisible' %}
|
||||
<div class="g-recaptcha" data-sitekey="{{ config.recaptcha_site_key }}" data-bind="login-submit"></div>
|
||||
{% elseif config.recaptcha_type == 'v2-checkbox' %}
|
||||
<tr>
|
||||
<td class="LabelV" style="width: 150px">
|
||||
<span{% if error is not null %} class="red"{% endif %}>Verification:</span>
|
||||
</td>
|
||||
<td>
|
||||
<div class="g-recaptcha" data-sitekey="{{ config.recaptcha_site_key }}" data-theme="{{ config.recaptcha_theme }}"></div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<input type="hidden" name="g-recaptcha-response" id="g-recaptcha-response" />
|
||||
{% endif %}
|
||||
</table>
|
||||
<div style="float: right; font-size: 1px;" >
|
||||
@@ -158,7 +145,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% if config.recaptcha_enabled and config.recaptcha_type == 'v3' %}
|
||||
{% if config.recaptcha_enabled %}
|
||||
{% set action = 'login' %}
|
||||
{{ include('google_recaptcha_v3.html.twig') }}
|
||||
{% endif %}
|
||||
{{ include('google_recaptcha.html.twig') }}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user