hm_ems_report/static/logout.html
Vadym Samoilenko 2aeb8299ac Add simple login authentication
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>
2026-03-11 21:52:04 +00:00

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>