{% extends 'base.html' %} {% block body %}
{{_("Cancel")}} {% if user.id %} {{_("Delete")}} {% else %} {{_("Delete")}} {% endif %}
{% if user.id %} {% else %} {% endif %}
{% if not user.id %}
{% endif %}
{{_("Only letters, numbers, dashes (\"-\") and underscores (\"_\") are allowed. At most 32, at least 2 characters. There is a word blocklist. Must be unique.")}}
{% if not user.id %}
{% endif %}
{{_("If you leave this empty it will be set to the login name. At most 128, at least 2 characters. No character restrictions.")}}
{{_("Check that the address is unique. A user can take over another account if both have the same mail address set.")}}
{% if user.id %} {% else %} {% endif %} {{ User.PASSWORD_DESCRIPTION|safe }}
{% if user.id %}
{{_("Two-Factor Authentication")}}

{{ _("Status:") }} {{ _("Enabled") if user.mfa_enabled else _("Disabled") }}
{{ user.mfa_recovery_codes|length }} {{ _("Recovery Codes") }}, {{ user.mfa_totp_methods|length }} {{ _("Authenticator Apps (TOTP)") }}, {{ user.mfa_webauthn_methods|length }} {{ _("U2F and FIDO2 Devices") }}

{{_("Reset 2FA")}}
{% endif %}
{{_("Roles")}}: {% for role in roles|sort(attribute="name") %} {% endfor %}
{{_("Name")}} {{_("Description")}}
{{ role.name }} {{ role.description }}
{{_("Resulting groups (only updated after save)")}}: {% for group in user.groups|sort(attribute="name") %} {% endfor %}
{{_("Name")}} {{_("Description")}}
{{ group.name }} {{ group.description }}
{% endblock %}