mirror of
https://github.com/andrey271192/kaskad.git
synced 2026-09-21 13:51:57 +00:00
Browsers cannot clear HTTP Basic credentials; logout never worked reliably. Use Flask signed session + /login form + GET /logout + POST /api/logout. Optional KASKAD_SECRET_KEY or auto /etc/kaskad/.session_secret. Fetch API uses credentials: same-origin; 401 redirects to /login. Docs + README updated. Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
980 B
HTML
29 lines
980 B
HTML
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Вход — Kaskad</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
</head>
|
|
<body class="login-page">
|
|
<div class="login-box">
|
|
<h1>Каскад</h1>
|
|
<p class="muted">Вход в панель управления</p>
|
|
{% if error %}
|
|
<p class="status err" style="margin:12px 0">{{ error }}</p>
|
|
{% endif %}
|
|
<form method="post" action="{{ url_for('login') }}">
|
|
<input type="hidden" name="next" value="{{ next_url }}">
|
|
<label>Логин
|
|
<input name="username" autocomplete="username" required autofocus>
|
|
</label>
|
|
<label>Пароль
|
|
<input type="password" name="password" autocomplete="current-password" required>
|
|
</label>
|
|
<button type="submit" class="danger solid">Войти</button>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|