Add admin password management and collapsible settings

This commit is contained in:
2026-11-22 17:20:30 +03:00
parent bbe4d5cfa3
commit ba0ffbe89b
4 changed files with 161 additions and 16 deletions
+3
View File
@@ -13,6 +13,9 @@
<div class="text-secondary small text-uppercase fw-semibold mb-2">AI Station</div>
<h1 class="h3 mb-2">Администрирование</h1>
<p class="text-secondary mb-4">Введите системный пароль пользователя theroot.</p>
{% if request.query_params.get('result') == 'password-changed' %}
<div class="alert alert-success py-2">Пароль успешно изменён. Войдите с новым паролем.</div>
{% endif %}
{% if error %}<div class="alert alert-danger py-2">{{ error }}</div>{% endif %}
<form method="post" action="/admin/login">
<label for="password" class="form-label">Системный пароль</label>