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>