mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-18 01:00:59 +00:00
fix(clients): reject spaces, '/', '\' and control chars in client email
Client emails containing a slash broke the path-param routes (edit/delete/view returned 404 / "client not found"), leaving stale records that could only be cleared with manual SQLite edits. Validate the email on both the backend (Create + Update, which also covers the bulk paths) and the frontend (Zod) so these characters are rejected at save time with a clear, localized message across all 13 locales. Closes #4695
This commit is contained in:
@@ -646,6 +646,7 @@
|
||||
"subId": "ID підписки",
|
||||
"online": "У мережі",
|
||||
"email": "Email",
|
||||
"emailInvalidChars": "Email не може містити пробіли, '/', '\\' або керуючі символи",
|
||||
"group": "Група",
|
||||
"groupDesc": "Логічна мітка для групування пов'язаних клієнтів (напр. команда, клієнт, регіон). Фільтрується з панелі інструментів.",
|
||||
"groupPlaceholder": "напр. customer-a",
|
||||
|
||||
Reference in New Issue
Block a user