Hash :
e800e02b
Author :
Thomas de Grivel
Date :
2021-12-08T16:24:53
<%= tag :input, type: 'hidden', name: 'recaptcha' %>
<script src={"https://www.google.com/recaptcha/api.js?render=#{recaptcha_site_key()}"}></script>
<script>
grecaptcha.ready(function() {
grecaptcha.execute('<%= recaptcha_site_key() %>', {action: 'register'}).then(function(token) {
$('input[name="recaptcha"]').val(token);
});
});
</script>