{% extends "2fa/base.html" %}{% load i18n static %} {% block title %}{% translate "2nd Factor Login" %}{% endblock %} {% block nav-title %} {% if complete_setup %}

{% translate 'Verify your authorization device.' %}

{% else %}

{% translate 'Authorization Code Required' %}

{% endif %} {% endblock %} {% block content %} {% if form.errors and not form.non_field_errors %}

{% if form.errors.items|length == 1 %}{% translate "Please correct the error below." %}{% else %}{% translate "Please correct the errors below." %}{% endif %}

{% endif %}
{% csrf_token %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}

{% translate 'Authenticator:' %} {{ device.name }}
{% if device.device_type == 'email' %} {% translate 'Check your e-mail for your authorization code.' %} {% elif device.device_type == 'app' %} {% if not complete_setup %}{% translate 'Enter code from your authenicator application.' %}{% endif %} {% else %} {% translate 'Use your hardware token to complete sign in.' %} {% endif %}

{% if complete_setup and device.device_type == 'app' %}

{% translate 'Scan QR below in your authenicator app, then enter a code to verify your device.' %}


{% translate 'Provision URL:' %}

{{ device.provision_url }}

{% endif %}
{{ form.mfa_code.errors }} {{ form.mfa_code }} {{ form.mfa_code.label_tag }}
{% endblock %} {% block script %} {{ block.super }} {% if complete_setup and device.device_type == 'app' %} {% endif %} {% endblock %}