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

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

{% else %}

{% translate 'Enter your authorization code to continue.' %}

{% endif %} {% 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 %}

{% 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.label_tag }} {{ form.mfa_code }}
{% endblock %} {% block script %} {% if complete_setup and device.device_type == 'app' %} {% endif %} {% endblock %}