{% extends 'hidp/base_post_login.html' %} {% load i18n %} {% block title %}{% translate 'Two-factor Authentication' %}{% endblock %} {% block main %}

{% translate 'Set up two-factor authentication' %}

{% csrf_token %}

{% translate 'Scan the QR code' %}

{% translate 'QR code for setting up two-factor authentication. Scan with your authenticator app.' %}
{% translate 'Having trouble scanning the QR code?' %}

{% translate 'Enter the following URL in your authenticator app:' %}

{{ config_url}}

{{ form.non_field_errors }}

{{ form.otp_token.errors }} {{ form.otp_token.label_tag }} {{ form.otp_token }}

{% translate 'Recovery codes' %}

{{ recovery_codes }}

{{ form.confirm_stored_backup_tokens.errors }} {{ form.confirm_stored_backup_tokens.label_tag }} {{ form.confirm_stored_backup_tokens }}

{% include 'hidp/includes/forms/submit_row.html' with submit_label=_('Submit') cancel_label=_('Back') cancel_url=back_url %}
{% endblock %}