305
| <![CDATA[<script>
$('#formCadastrar').on('submit', onSubmitForm);
function onSubmitForm() {
event.preventDefault();
grecaptcha.ready(function () {
grecaptcha.execute("6LcLTt8bAAAAAIc_08FUa1cz2LIGK8jc3S7CREt6", {action: 'social'}).then(function (token) {
let input = $('#recaptcha');
if (!input.length) {
input = '<input type="hidden" name="recaptcha" value="${token}">';
$('form').prepend(input);
} else {
$(input).val(token);
}
$("#formCadastrar").off("submit", onSubmitForm);
$("#formCadastrar").submit();
})
})
}
</script>]]>
|