{% extends "base.html" %} {% block title %}{{ target.display_name }} · {{ appearance.name }}{% endblock %} {% block content %}

← {{ _('All users') }}

{{ target.display_name }}

{{ target.email }}

{% if error %}{% endif %} {% if target.is_locked %}

{{ _('Temporarily locked') }}

{{ _('Reason: %(num)d failed sign-in attempts in a row.', num=lock_attempts) }} {{ _('Locked since %(since)s, until %(until)s. Until then, sign-in fails even with the right password.', since=lock_since | datetime, until=target.locked_until | datetime) }}

{{ csrf_field(request) }}

{{ _('If the attempts did not come from this person, reset the password instead and check the log.') }}

{% endif %}
{{ csrf_field(request) }}
{{ _('Created') }}
{{ target.created_at | datetime }}
{{ _('Last sign-in') }}
{{ target.last_login_at | datetime }}
{{ _('Status') }}
{% if not target.is_active %}{{ _('deactivated') }}{% elif target.is_locked %}{{ _('temporarily locked') }}{% elif not target.password_hash %}{{ _('invited') }}{% else %}{{ _('active') }}{% endif %}{% if target.failed_logins and not target.is_locked %} · {{ ngettext('%(num)d failed sign-in attempt since the last success', '%(num)d failed sign-in attempts since the last success', target.failed_logins) }}{% endif %}
{{ _('Two-factor authentication') }}
{% if target.has_totp %}{{ _('Authenticator app') }}{% endif %} {% if target.has_passkey %}{{ ngettext('%(num)d passkey', '%(num)d passkeys', target.passkeys | length) }}{% endif %} {% if not target.has_second_factor %}{{ _('off') }}{% endif %}
{{ _('Groups') }}
{% for g in groups %}{{ g.name }}{% if not loop.last %}, {% endif %}{% else %}–{% endfor %}

{% if target.password_hash %}{{ _('Reset sign-in') }}{% else %}{{ _('Invitation link') }}{% endif %}

{% if target.password_hash %} {{ _('Creates a one-time link with which the person sets a new password. Valid for 24 hours.') }} {% else %} {{ _('Creates a new invitation link. Valid for 7 days; earlier links become invalid.') }} {% endif %}

{{ csrf_field(request) }} {% if target.has_second_factor %} {% endif %}

{{ _('By email, the link goes to %(address)s and is not shown here.', address=target.email) }}

{{ csrf_field(request) }}

{{ _('Data of this user') }}

{{ _('For a request for access: everything stored about this person, as a JSON file. The export is recorded in the log.') }}

{{ csrf_field(request) }}
{% if user and target.id != user.id %}

{{ _('Delete user') }}

{{ _('Deletes the account with all its data. You see beforehand exactly what will be deleted and decide what happens to the forms of this user.') }}

{{ _('Delete user …') }}

{% endif %} {% endblock %}