hvac/backend/src
jtricerolph f63dd67668 Fix kiosk login colliding with real staff login
Kiosk sessions were minted under the same cookie name ('hnf_session') as a
real staff session, on the same origin -- the browser can end up holding two
same-named cookies with different scope with no guarantee which one it sends,
so a valid staff login could get shadowed by a stale kiosk cookie (hit
2026-08-26 testing kiosk login on a desktop browser, then unable to log into
the normal manage pages).

Fix: kiosk sessions now live in their own cookie, 'hvac_kiosk_session',
completely independent of the real staff session. hvac's requireAuth checks
hnf_session first, falls back to hvac_kiosk_session. Also dropped the
now-unneeded DOMAIN cross-subdomain cookie scoping -- this cookie is only
ever read by hvac's own backend, so a plain host-scoped cookie is simplest.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-26 11:03:35 +00:00
..
lib Fix: scheduler never automated Daikin AC — missing from AC_DEVICE_TYPES 2026-08-26 10:46:00 +00:00
routes Fix kiosk login colliding with real staff login 2026-08-26 11:03:35 +00:00
auth.js Fix kiosk login colliding with real staff login 2026-08-26 11:03:35 +00:00
db.js Add kiosk wall-panel control view 2026-08-25 20:44:50 +00:00
index.js Add kiosk wall-panel control view 2026-08-25 20:44:50 +00:00
ip-check.js Scaffold Phase 1 hvac app — NewBook-driven room TRV heating scheduler 2026-07-26 18:00:42 +00:00