{% extends "base.html" %} {% block title %}{{ _('My account') }} · {{ appearance.name }}{% endblock %} {% block content %}

{{ _('My account') }}

{{ _('Profile') }}

{% if profile_error %}{% endif %}
{{ csrf_field(request) }}

{{ account.email }}

{{ _('Notifications') }}

{{ _('Choose which emails you receive, e.g. when you move up from a waiting list or a comment is waiting for approval.') }}

{{ _('Notification settings') }}

{{ _('Password') }}

{% if password_error %}{% endif %}
{{ csrf_field(request) }}

{{ _('Changing the password signs out all your other sessions.') }}

{{ _('Two-factor authentication') }}

{{ _('A second factor protects your account even if your password becomes known.') }}

{% if mfa_error %}{% endif %}

{{ _('Passkeys') }}

{{ _('A passkey replaces password and code: you confirm with fingerprint, face or device PIN. It is stored on your device or in your password manager.') }}

{% if passkey_error %}{% endif %} {% if account.passkeys %} {% for pk in account.passkeys %} {% endfor %}
{{ _('Name') }}{{ _('Added') }}{{ _('Last used') }}
{{ pk.name }}{% if pk.backed_up %} {{ _('synced') }}{% endif %} {{ pk.created_at | datetime }} {{ pk.last_used_at | datetime }}
{{ _('Remove') }}
{{ csrf_field(request) }} {% if account.password_hash %} {% endif %}
{% endif %}

{{ _('Authenticator app') }}

{% if account.has_totp %}

{{ _('Turned on since %(date)s.', date=account.totp_enabled_at | datetime) }}

{% if not account.is_admin or account.has_passkey %}
{{ csrf_field(request) }}
{% endif %} {% else %}

{{ _('Set up authenticator app') }}

{% endif %} {% if account.has_second_factor %}

{{ _('Recovery codes') }}

{{ ngettext('%(num)d recovery code left.', '%(num)d recovery codes left.', remaining_codes) }}

{{ csrf_field(request) }}
{% endif %}

{{ _('Sessions') }}

{% for s in user_sessions %} {% endfor %}
{{ _('Device') }}{{ _('Signed in') }}{{ _('Last active') }}
{{ s.user_agent or _('Unknown') }}{% if s.id == current_session_id %} {{ _('this session') }}{% endif %} {{ s.created_at | datetime }} {{ s.last_seen_at | datetime }}
{% if user_sessions | length > 1 %}
{{ csrf_field(request) }}
{% endif %}

{{ _('My data') }}

{{ _('Download everything stored about you as a JSON file: your account, your answers with places, comments, follow-up emails received and the email log.') }}

{{ csrf_field(request) }}

{{ _('Delete account') }}

{{ _('Deletes your account with all your data. Before anything happens, you see exactly what will be deleted and decide what happens to your own forms.') }}

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

{% endblock %}