mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-21 13:03:27 +02:00
Reverted support only for recaptcha v3
v2 & v3 are now both supported
This commit is contained in:
11
system/templates/google_recaptcha_v3.html.twig
Normal file
11
system/templates/google_recaptcha_v3.html.twig
Normal file
@@ -0,0 +1,11 @@
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
grecaptcha.ready(function() {
|
||||
grecaptcha.execute('{{ config.recaptcha_site_key }}', {action: '{{ action }}'}).then(function(token) {
|
||||
if (token) {
|
||||
document.getElementById('g-recaptcha-response').value = token;
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
Reference in New Issue
Block a user