Edit

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

Branch :

  • lib/kmxgit_web/templates/user_session/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: 'login'}).then(function(token) {
         $('input[name="recaptcha"]').val(token);
       });
     });
    </script>