Commit graph

1 commit

Author SHA1 Message Date
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