Edit

kmx.io/kmxgit/lib/kmxgit_web/templates/user_registration/recaptcha.html.heex

Branch :

  • lib/kmxgit_web/templates/user_registration/recaptcha.html.heex
  • <%= 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>