{% extends 'user/account/index.html' %} {% load two_factor i18n inboxen_account %} {% block navigation %} {% account_menu 'user-security' %} {% endblock %} {% block form %} {% if default_device %} {% if default_device_type == 'TOTPDevice' %}
{% trans "Tokens will be generated by your token generator." %}
{% elif default_device_type == 'PhoneDevice' %}{% blocktrans with primary=default_device|device_action %}Primary method: {{ primary }}{% endblocktrans %}
{% elif default_device_type == 'RemoteYubikeyDevice' %}{% blocktrans %}Tokens will be generated by your YubiKey.{% endblocktrans %}
{% endif %}{% blocktrans %} If you wish to disable two factor authentication on this account, click the button below. {% endblocktrans %}
{% trans "Disable Two Factor Authentication" %}
{% trans "If you don't have you device with you, you can access your account using backup tokens." %}
{% if backup_tokens %} {% blocktrans count counter=backup_tokens %} You have only one backup token remaining. {% plural %} You have {{ counter }} backup tokens remaining. {% endblocktrans %} {% else %} {% trans "You do not have any backup tokens" %} {% endif %}
{% else %}{% blocktrans %} Two-factor authentication is not enabled for your account. Enable two-factor authentication for enhanced account security. {% endblocktrans %}
{% trans "Enable Two-Factor Authentication" %}
{% endif %}{% trans "You can change your password here." %}
{% endblock %}