dragonflight/services/mam-api/src/routes
opencode e71c330bdd fix(auth): remove manual session.save() — was suppressing Set-Cookie header
Login was returning 200 + correct user JSON + writing a row to the
sessions table, but emitting zero Set-Cookie headers. Root cause:

  session.regenerate() → set fields → session.save() → res.json()

Calling session.save() manually writes the store but bypasses
express-session's res.end() hook, which is the only path that adds
the Set-Cookie header to the response. The cookie was never sent to
the browser even though the session existed server-side — hence the
redirect loop.

Fix: remove the manual save(). Set the session fields and call
res.json() directly inside regenerate()'s callback; express-session
handles store write + Set-Cookie automatically on res.end().
2026-05-27 02:59:22 +00:00
..
ampp.js feat: AMPP folder sync integration — pre-create folder hierarchy on upload, expose lookup endpoint for Script Task: ampp.js 2026-04-18 13:42:08 -04:00
assets.js fix(player): stitch S3 ranges around RustFS empty-body bug (#143) 2026-05-27 02:38:42 +00:00
auth.js fix(auth): remove manual session.save() — was suppressing Set-Cookie header 2026-05-27 02:59:22 +00:00
bins.js chore: 1.2 ship-prep sweep — close 38 issues 2026-05-27 02:06:14 +00:00
capture.js fix(capture): handle non-JSON responses from capture service gracefully 2026-05-20 13:55:06 -04:00
cluster.js chore: 1.2 ship-prep sweep — close 38 issues 2026-05-27 02:06:14 +00:00
comments.js feat(comments): persistent frame-anchored comments on asset detail 2026-05-23 04:21:11 +00:00
groups.js feat(mam-api): add groups admin CRUD routes with member management 2026-05-18 12:50:49 -04:00
imports.js feat(ingest): YouTube importer — paste link, asset travels normal pipeline 2026-05-23 16:05:41 -04:00
jobs.js chore: 1.2 ship-prep sweep — close 38 issues 2026-05-27 02:06:14 +00:00
metrics.js fix(metrics): use real job_status enum values (queued/processing/complete) 2026-05-23 03:31:14 +00:00
projects.js chore: 1.2 ship-prep sweep — close 38 issues 2026-05-27 02:06:14 +00:00
recorders.js chore: 1.2 ship-prep sweep — close 38 issues 2026-05-27 02:06:14 +00:00
schedules.js chore: 1.2 ship-prep sweep — close 38 issues 2026-05-27 02:06:14 +00:00
sdk.js chore: 1.2 ship-prep sweep — close 38 issues 2026-05-27 02:06:14 +00:00
sequences.js chore: 1.2 ship-prep sweep — close 38 issues 2026-05-27 02:06:14 +00:00
settings.js feat: SDK deployment UI, proxy encoding global settings, S3 env fallback 2026-05-23 02:58:32 +00:00
storage.js feat(admin): unified Storage settings page with mount/bucket health diagnostics 2026-05-26 22:45:50 +00:00
system.js feat(system): Docker container management via Unix socket 2026-05-19 23:46:03 -04:00
tokens.js chore: 1.2 ship-prep sweep — close 38 issues 2026-05-27 02:06:14 +00:00
upload.js chore: 1.2 ship-prep sweep — close 38 issues 2026-05-27 02:06:14 +00:00
users.js fix(users): invalidate sessions on password change (issue #94 bug 5) 2026-05-26 07:39:14 -04:00