{% extends "base.html" %} {% import "_macros.html" as m with context %} {% block title %}Your login{% endblock %} {% block content %}

Your login

Signed in as {{ user.username }}{% if not is_admin %}. The same password works for SFTP{% endif %}.

Password

Changing it signs out your other sessions.

{{ m.csrf_field() }}
{% set post_url = "/profile" %} {% include "_security.html" %}

Where you are signed in

Sign out anything you do not recognise, then change your password.

{% if sec.sessions|length > 1 %}
{{ m.csrf_field() }}
{% endif %}
{% for s in sec.sessions %} {% endfor %}
{{ s.ip or "unknown address" }}{{ (s.ua or "unknown browser")[:90] }} signed in {{ s.created|ago }}, active {{ s.last_seen|ago }} {% if s.mfa %}2-step{% else %}Password only{% endif %} {% if s.current %}This browser{% else %}
{{ m.csrf_field() }}
{% endif %}

AI assistant

Connect your own model to edit files and generate pages. Your key is stored on this server and never shown again.

{% if aicfg.own %}{{ aicfg.own.provider_label }}{% elif aicfg.server and (aicfg.server.available or aicfg.server.provider) %}Using the server's AI{% endif %}
{% set c = aicfg.own %} {% include "_ai_form.html" %}
{% endblock %}