{% extends 'base.html' %} {% macro new_email_row(tmp_id) %} {% endmacro %} {% block body %} {% if user.id %}
{% else %} {% endif %}
{% if user.id and user.is_deactivated %}
{{ _('This account is deactivated. The user cannot login and existing sessions are not usable. The user cannot log into services, but existing sessions on services might still be active.') }}
{% endif %}
{{_("Cancel")}} {% if user.id and not user.is_deactivated and user != request.user %} {{ _("Deactivate") }} {% elif user.id and user.is_deactivated %} {{ _("Activate") }} {% else %} {{ _("Deactivate") }} {% endif %} {% if user.id and user != request.user %} {{_("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.")}}
{% if not user.id %}
{{_("Make sure the address is correct! Services might use e-mail addresses as account identifiers and rely on them being unique and verified.")}}
{% else %}
{{_("E-Mail Addresses")}} {% for email in user.all_emails %} {% endfor %} {{ new_email_row(0) }}
{{_("Address")}} {{_("Verified")}} {{_("Delete")}}
{{ email.address }} {% if email == user.primary_email %} {{ _('primary') }} {% endif %}
{{_("Make sure that addresses you add are correct! Services might use e-mail addresses as account identifiers and rely on them being unique and verified.")}}
{% for service_user in user.service_users if service_user.has_email_preferences %}
{% endfor %} {% endif %}
{% 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 %}