Added session-based login system to protect the application. Features: - Login page with credentials: admin3_M / Pa$$w0rd2026_! - Session-based authentication using Flask sessions - All routes protected with @login_required decorator - Logout functionality with button in header - Clean login UI matching H&M branding Security: - Secret key for session encryption (should be set via env var) - Password stored in code (consider hashing for production) Files: - server.py: Added login/logout routes and auth decorator - static/index.html: Added logout button in header - static/logout.html: Logout redirect page - .env.example: Added SECRET_KEY configuration Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
14 lines
304 B
HTML
14 lines
304 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Logout - H&M EMS</title>
|
|
<script>
|
|
window.location.href = '/logout';
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<p>Logging out...</p>
|
|
</body>
|
|
</html>
|