{% extends "office/base_headline.html" %} {% load bootstrap4 %} {% load i18n %} {% load mfa_tags %} {% block headline %}{% trans "User" %} {% if user.last_name %}{{user.last_name}} ({{user.username}}){% else %}{{user.username}}{% endif %} {% if not user.has_usable_password %} {% trans "Password disabled" %} {% endif %} {% if user|mfa_enabled %} {% trans "MFA enabled" %} {% endif %} {% endblock %} {% block content %}
{% if user.pk == request.user.pk %}{% trans "Multi-factor authentication" %}
{% else %}
{% trans "Multi-factor authentication is enabled. If this user lost access to their authenticator app and recovery codes, an administrator can reset it on the server:" %}
python manage.py mfa_reset {{ user.username }}
{% trans "This user's password is disabled. Set a new password above to re-enable password login." %}
{% endif %}{% trans "This user has an API token. The token itself is not shown here." %}
{% else %}{% trans "This user has no API token. A new one is created when the user opens their API token page." %}
{% endif %} {% endif %} {% endblock %}