You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
937 B

  1. {% extends "base.html" %}
  2. {% load compress static hc_extras %}
  3. {% block content %}
  4. <div class="row">
  5. <form class="col-sm-6 col-sm-offset-3" method="post">
  6. <h1>Two-factor Authentication</h1>
  7. {% csrf_token %}
  8. <p>
  9. Please enter the six-digit code from your authenticator app.
  10. </p>
  11. <div class="form-group {{ form.code.css_classes }}">
  12. <input
  13. type="text"
  14. name="code"
  15. pattern="[0-9]{6}"
  16. title="6-digit code"
  17. placeholder="6-digit code"
  18. class="form-control input-lg" />
  19. {% if form.code.errors %}
  20. <div class="help-block">
  21. {{ form.code.errors|join:"" }}
  22. </div>
  23. {% endif %}
  24. </div>
  25. <div class="form-group text-right">
  26. <input
  27. class="btn btn-primary"
  28. type="submit"
  29. name=""
  30. value="Continue">
  31. </div>
  32. </form>
  33. </div>
  34. {% endblock %}