You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
GET /users and GET /users/search no longer expose pending invite tokens — both endpoints reused the same response shape as the admin user list, which includes a pending invitee's live invite_token. Since either endpoint only required being logged in (not an admin), any authenticated user could look up a pending invitee and read their token, then complete the invite themselves via /auth/accept-invite before the real invitee did. The token is now only ever returned by the admin-gated GET /admin/users and POST /users/invite responses.
Removed the legacy POST /auth/register endpoint — it created an immediately-active, loginable account for any email with no auth and no invite check, bypassing the invite-only model this platform is built around. It had no frontend caller; account creation now only happens via an admin invite (/users/invite → /auth/accept-invite), first-time setup (/setup/create-superadmin), or a sign-in code sent to an already-known email (/auth/send-magic-code).