recaptcha.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {% block title %}Authentication{% endblock %}
  2. {% block header %}
  3. <script src="https://www.recaptcha.net/recaptcha/api.js" async defer></script>
  4. <script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
  5. <link rel="stylesheet" href="/_matrix/static/client/register/style.css">
  6. <script>
  7. function captchaDone() {
  8. $('#registrationForm').submit();
  9. }
  10. </script>
  11. {% endblock %}
  12. {% block body %}
  13. <form id="registrationForm" method="post" action="{{ myurl }}">
  14. <div>
  15. {% if error is defined %}
  16. <p class="error"><strong>Error: {{ error }}</strong></p>
  17. {% endif %}
  18. <p>
  19. Hello! We need to prevent computer programs and other automated
  20. things from creating accounts on this server.
  21. </p>
  22. <p>
  23. Please verify that you're not a robot.
  24. </p>
  25. <input type="hidden" name="session" value="{{ session }}" />
  26. <div class="g-recaptcha"
  27. data-sitekey="{{ sitekey }}"
  28. data-callback="captchaDone">
  29. </div>
  30. <noscript>
  31. <input type="submit" value="All Done" />
  32. </noscript>
  33. </div>
  34. </div>
  35. </form>
  36. {% endblock %}