diff --git a/frontend/src/lib/xray/inbound-defaults.ts b/frontend/src/lib/xray/inbound-defaults.ts index 1c8e2aa5..2f45b3c1 100644 --- a/frontend/src/lib/xray/inbound-defaults.ts +++ b/frontend/src/lib/xray/inbound-defaults.ts @@ -46,7 +46,7 @@ interface ClientBase { function clientBase(seed: ClientBaseSeed = {}): ClientBase { return { - email: seed.email ?? RandomUtil.randomLowerAndNum(8), + email: seed.email ?? RandomUtil.randomLowerAndNum(10), limitIp: seed.limitIp ?? 0, totalGB: seed.totalGB ?? 0, expiryTime: seed.expiryTime ?? 0, diff --git a/frontend/src/pages/clients/ClientBulkAddModal.tsx b/frontend/src/pages/clients/ClientBulkAddModal.tsx index 76f27187..9b4d8c42 100644 --- a/frontend/src/pages/clients/ClientBulkAddModal.tsx +++ b/frontend/src/pages/clients/ClientBulkAddModal.tsx @@ -130,7 +130,7 @@ export default function ClientBulkAddModal({ const postfix = method > 2 && form.emailPostfix.length > 0 ? form.emailPostfix : ''; for (let i = start; i < end; i++) { let email = ''; - if (method !== 4) email = RandomUtil.randomLowerAndNum(6); + if (method !== 4) email = RandomUtil.randomLowerAndNum(10); email += useNum ? prefix + String(i) + postfix : prefix + postfix; out.push(email); } diff --git a/frontend/src/pages/clients/ClientFormModal.tsx b/frontend/src/pages/clients/ClientFormModal.tsx index 190048f5..873e749f 100644 --- a/frontend/src/pages/clients/ClientFormModal.tsx +++ b/frontend/src/pages/clients/ClientFormModal.tsx @@ -191,7 +191,7 @@ export default function ClientFormModal({ } else { setForm({ ...emptyForm(), - email: RandomUtil.randomLowerAndNum(9), + email: RandomUtil.randomLowerAndNum(10), uuid: RandomUtil.randomUUID(), subId: RandomUtil.randomLowerAndNum(16), password: RandomUtil.randomLowerAndNum(16),