Malin
efbee1540c
feat: add login / user management to BeautyLeads
- db.py: beauty_users + beauty_sessions tables; PBKDF2-SHA256 password
hashing; init_beauty_auth seeds default Admin user; full CRUD helpers
- beauty_main.py: AuthMiddleware blocks all routes except /api/auth/* and
/login.html; auth routes: login (sets HttpOnly 30-day cookie), logout,
/me, change-password (invalidates sessions), list/add/delete users
- login.html: standalone dark-themed sign-in page matching app palette
- index.html: auth check in init() → redirects to login.html if 401;
header shows username + settings gear + sign-out; settings modal with
change-password form and admin user management (add/delete users)
Default credentials: Admin / Asdpsd9012!HAP
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 13:41:08 +02:00
..
2026-05-14 13:41:08 +02:00
2026-04-13 16:22:30 +02:00
2026-05-13 10:37:36 +02:00
2026-05-14 13:41:08 +02:00
2026-05-14 13:41:08 +02:00
2026-04-21 07:10:45 +02:00
2026-04-21 07:10:45 +02:00
2026-04-17 21:52:39 +02:00
2026-04-14 08:39:27 +02:00
2026-04-14 07:21:02 +02:00
2026-05-13 10:49:45 +02:00
2026-04-21 07:10:45 +02:00