Meilenstein 1: Grundgerüst mit Login, Sessions und CSRF
- FastAPI-App mit SQLite-Schema (admins, sessions, connections) - Login mit Argon2, serverseitige Sessions (Token nur gehasht gespeichert) - Cookie HttpOnly/Secure/SameSite=Strict, CSRF-Token für schreibende Requests - scripts/create_admin.py zum Anlegen und Zurücksetzen von Admins - Einfaches Frontend mit Login - pytest-Tests, gepinnte requirements.txt, .env.example, .gitignore - SETUP.md Teil 4 ergänzt Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
403606ff66
commit
293367f33e
18 files changed
+837
-6
No files matched your search
@@ -0,0 +1,40 @@
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>it-connect</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>it-connect</h1>
|
||||
<div id="benutzer-bereich" hidden>
|
||||
<span id="benutzer-name"></span>
|
||||
<button id="logout-btn" type="button">Abmelden</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<section id="login-bereich" hidden>
|
||||
<form id="login-form" class="karte">
|
||||
<h2>Anmelden</h2>
|
||||
<label>Benutzername
|
||||
<input name="benutzername" autocomplete="username" required>
|
||||
</label>
|
||||
<label>Passwort
|
||||
<input name="passwort" type="password" autocomplete="current-password" required>
|
||||
</label>
|
||||
<p id="login-fehler" class="fehler" role="alert"></p>
|
||||
<button type="submit">Anmelden</button>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<section id="dashboard" hidden>
|
||||
<p>Angemeldet. Die Verbindungs-Kacheln folgen in Meilenstein 2.</p>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<script src="app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user