3x-ui/web
MHSanaei 26c549a95a fix(client): match clients by email for delete/update, not credentials
Delete/update located the client in an inbound's settings JSON by the
record's credential (uuid/password/auth). When that credential drifted
from the inbound JSON -- e.g. a rotated UUID left behind, or duplicated
by a past partial-update bug -- the lookup failed with "Client Not Found
In Inbound For ID: <uuid>" and aborted the whole operation, making the
client impossible to remove from the panel.

Key every delete/update/detach path on email, the client's stable
identity. This survives credential drift and heals duplicate-email
entries by removing all of them.

- Delete/DeleteByEmail/Detach/DetachByEmailMany -> DelInboundClientByEmail
- delInboundClients / bulkDelInboundClients: match settings by email
- UpdateInboundClient: locate the entry to replace by email
  (param clientId -> oldEmail); update all callers to pass the email
- bulkAdjustInboundClients: match by email
- writeBackClientSubID: pass email; drop unused sourceProtocol param
- make per-inbound deletion idempotent via ErrClientNotInInbound
- remove now-orphaned DelInboundClient, clientKeyForProtocol and
  getClientPrimaryKey; scale test deletes by email
2026-06-10 09:37:40 +02:00
..
controller feat: add manual and automatic WARP IP rotation (#5099) 2026-06-09 01:43:43 +02:00
entity feat: add manual and automatic WARP IP rotation (#5099) 2026-06-09 01:43:43 +02:00
global Feat/multi inbound clients (#4469) 2026-05-19 12:20:24 +02:00
job fix: inbound edit validation failure and legacy copy to clipboard (#5132) 2026-06-09 15:55:55 +02:00
locale v3 2026-05-10 02:13:42 +02:00
middleware feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
network docs: add comments for all functions 2025-09-20 09:35:50 +02:00
runtime fix: propagate inbound traffic reset to nodes (#5103) 2026-06-09 01:26:30 +02:00
service fix(client): match clients by email for delete/update, not credentials 2026-06-10 09:37:40 +02:00
session Security hardening: sessions, SSRF, CSP nonce, CSRF logout, trusted proxies (#4275) 2026-05-13 12:52:52 +02:00
translation feat(mtproto): add domain-fronting and essential mtg options 2026-06-09 12:44:04 +02:00
websocket fix(websocket): order register/unregister via single ops channel 2026-05-19 12:34:53 +02:00
web.go feat: add manual and automatic WARP IP rotation (#5099) 2026-06-09 01:43:43 +02:00