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.
 
 
 
 
 

51 lines
1.2 KiB

{% extends "base.html" %}
{% load compress static hc_extras %}
{% block content %}
<div class="row">
<form class="col-sm-6 col-sm-offset-3" method="post">
<h1>Two-factor Authentication</h1>
{% csrf_token %}
<p>
Please enter the six-digit code from your authenticator app.
</p>
<div class="form-group {{ form.code.css_classes }}">
<input
id="code"
type="text"
name="code"
pattern="[0-9]{6}"
title="6-digit code"
placeholder="6-digit code"
data-auto-submit="1"
class="form-control input-lg"
required
autofocus />
{% if form.code.errors %}
<div class="help-block">
{{ form.code.errors|join:"" }}
</div>
{% endif %}
</div>
<div class="form-group text-right">
<input
class="btn btn-primary"
type="submit"
name=""
value="Continue">
</div>
</form>
</div>
{% endblock %}
{% block base_scripts %}{% endblock %}
{% block scripts %}
{% compress js %}
<script src="{% static 'js/auto-submit.js' %}"></script>
{% endcompress %}
{% endblock %}