mirror of
https://github.com/myronblair/novacpx
synced 2026-06-30 17:50:41 -05:00
18c5989c17
The redirect on 401 sent the browser back to /?redirect=... on the same panel port, which re-served the panel page itself — causing an infinite reload. The panel pages (admin/reseller/user) already have inline login forms that activate when auth/me fails, so no redirect is needed. Return a failure object on 401 so the existing login form shows instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>