#2592 üye kayıt formuna capthca eklenmesi

This commit is contained in:
Diatrex 2020-11-05 17:52:32 +03:00
parent 8883913666
commit 356d79dffd
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
'url':form.options.url
})|raw }}
<input type="hidden" name="recaptcha_token" id="recaptcha_token">
<input type="hidden" name="recaptcha_token" id="recaptcha_token" class="recaptcha-token">
{% include 'visiosoft.theme.base::addons/anomaly/users-module/partials/register-form' %}

View File

@ -1,6 +1,6 @@
grecaptcha.ready(function() {
grecaptcha.execute(reCAPTCHASiteKey)
.then(function(token) {
document.getElementById("recaptcha_token").value = token;
$('.recaptcha-token').val(token)
});
});