Hash :
be961aca
Author :
Thomas de Grivel
Date :
2021-11-28T20:09:18
<%= 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>