Reverted support only for recaptcha v3

v2 & v3 are now both supported
This commit is contained in:
slawkens
2022-11-28 12:36:23 +01:00
parent a9941dea8a
commit c73e476e88
5 changed files with 58 additions and 12 deletions

View 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>