mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-05 14:52:12 +03:00
Replaces storing the full User object in the session cookie with just the user ID. GetLoginUser now re-fetches the user from the database on every request so credential/permission changes take effect immediately without requiring a re-login. Includes a backward-compatible migration path for existing sessions that still carry the old struct payload.