two-factor-login.html 785 Bytes
Newer Older
1 2 3 4 5 6
{% extends "registration/base.html" %}
{% load staticfiles %}
{% load i18n %}
{% load crispy_forms_tags %}
{% get_current_language as LANGUAGE_CODE %}

7
{% block title-page %}{% trans "Two-factor authentication" %}{% endblock %}
8 9

{% block content_box %}
10
  <div class="row" id="two-factor-box">
11
    <div class="col-md-12">
12 13 14 15 16 17
      <h4>
        {% blocktrans with username=user.username full_name=user.get_full_name %}
        Welcome {{ full_name }} ({{ username }})!
        {% endblocktrans %}
      </h4>
      <hr/>
18 19 20
      <form action="" method="POST">
        {% csrf_token %}
        {{ form.confirmation_code|as_crispy_field }}
21 22 23
        <button type="submit" class="btn btn-success">
          {% trans "Confirm" %}
        </button>
24 25 26 27
      </form>
    </div>
  </div>
{% endblock %}