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.

64 lines
1.7 KiB

  1. {% extends "base.html" %}
  2. {% load compress static hc_extras %}
  3. {% block content %}
  4. <div class="row">
  5. <form
  6. id="login-tfa-form"
  7. class="col-sm-6 col-sm-offset-3"
  8. data-options="{{ options }}"
  9. method="post"
  10. encrypt="multipart/form-data">
  11. <h1>Two-factor Authentication</h1>
  12. {% csrf_token %}
  13. <input id="credential_id" type="hidden" name="credential_id">
  14. <input id="authenticator_data" type="hidden" name="authenticator_data">
  15. <input id="client_data_json" type="hidden" name="client_data_json">
  16. <input id="signature" type="hidden" name="signature">
  17. <div id="waiting" class="hide">
  18. <h2>Waiting for security key</h2>
  19. <p>
  20. Follow your browser's steps to authenticate with your security key.
  21. </p>
  22. <div class="spinner started">
  23. <div class="d1"></div>
  24. <div class="d2"></div>
  25. <div class="d3"></div>
  26. </div>
  27. </div>
  28. <div id="error" class="alert alert-danger hide">
  29. <p>
  30. <strong>Something went wrong.</strong>
  31. </p>
  32. <p id="error-text"></p>
  33. <div class="text-right">
  34. <button id="retry" type="button" class="btn btn-danger">
  35. Try Again
  36. </button>
  37. </div>
  38. </div>
  39. <div id="success" class="hide">
  40. <div class="alert alert-success">
  41. <strong>Success!</strong>
  42. Credential acquired.
  43. </div>
  44. </div>
  45. </form>
  46. </div>
  47. {% endblock %}
  48. {% block scripts %}
  49. {% compress js %}
  50. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  51. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  52. <script src="{% static 'js/cbor.js' %}"></script>
  53. <script src="{% static 'js/login_tfa.js' %}"></script>
  54. {% endcompress %}
  55. {% endblock %}