[GH-ISSUE #5803] [Feature]: Add a tooltip/hint to the "Password" field in the client form clarifying which protocols use it #4034

Closed
opened 2026-10-31 20:36:41 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @mrnickson-hue on GitHub (Jul 5, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5803

The client edit/create form (ClientFormModal.tsx) is shared across all multi-client protocols (VLESS, VMess, Trojan, Shadowsocks, Hysteria, WireGuard), and shows every protocol-specific field at once — including a plain "Password" field with no label qualifier, no tooltip, and no indication of which protocol(s) it actually applies to.

Given how many different protocols the panel supports side by side, it's genuinely not obvious from the UI alone what this field affects. We only figured it out by reading the Go source (internal/xray/api.go, buildUserAccount):

case "vmess":        Id                                           // Password not read
case "vless":        Id, Flow                                     // Password not read
case "trojan":       Password (required)                          // ← used here
case "shadowsocks":  Password (required) + cipher                 // ← used here
case "hysteria":     Auth (required)                               // separate field, not Password
case "wireguard":    PublicKey, PreSharedKey, AllowedIPs, KeepAlive // Password not read

So "Password" is only meaningful for Trojan and Shadowsocks clients. For VLESS/VMess it's silently ignored by the engine, and for Hysteria the relevant field is the separate "Hysteria Auth" input right below it — which, without reading the source, looks like it could be redundant with "Password" rather than being the actually-required field.

This caused real confusion on our end: on an older node the Password field was populated (apparently auto-generated by the browser form at some point), while on newer nodes provisioned via our own automation it was left empty — and it wasn't obvious from the panel alone whether this mattered at all for our protocol (VLESS), or was a misconfiguration.

Describe the feature

Add a short tooltip (or inline hint text) to the Password Form.Item in ClientFormModal.tsx stating that it only applies to Trojan / Shadowsocks clients and is ignored for other protocols. Ideally something similar could be added near "Hysteria Auth" clarifying it's the credential Hysteria actually uses.

Additional context

Not a functional bug — the field works correctly for the protocols that use it. This is purely a clarity/UX gap that could save other users from the same "why is this here / does it matter" confusion.

Originally created by @mrnickson-hue on GitHub (Jul 5, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5803 ### Is your feature request related to a problem? The client edit/create form (`ClientFormModal.tsx`) is shared across all multi-client protocols (VLESS, VMess, Trojan, Shadowsocks, Hysteria, WireGuard), and shows every protocol-specific field at once — including a plain **"Password"** field with no label qualifier, no tooltip, and no indication of which protocol(s) it actually applies to. Given how many different protocols the panel supports side by side, it's genuinely not obvious from the UI alone what this field affects. We only figured it out by reading the Go source (`internal/xray/api.go`, `buildUserAccount`): ```go case "vmess": Id // Password not read case "vless": Id, Flow // Password not read case "trojan": Password (required) // ← used here case "shadowsocks": Password (required) + cipher // ← used here case "hysteria": Auth (required) // separate field, not Password case "wireguard": PublicKey, PreSharedKey, AllowedIPs, KeepAlive // Password not read ``` So "Password" is only meaningful for Trojan and Shadowsocks clients. For VLESS/VMess it's silently ignored by the engine, and for Hysteria the relevant field is the separate "Hysteria Auth" input right below it — which, without reading the source, looks like it could be redundant with "Password" rather than being the actually-required field. This caused real confusion on our end: on an older node the Password field was populated (apparently auto-generated by the browser form at some point), while on newer nodes provisioned via our own automation it was left empty — and it wasn't obvious from the panel alone whether this mattered at all for our protocol (VLESS), or was a misconfiguration. ### Describe the feature Add a short tooltip (or inline hint text) to the Password `Form.Item` in `ClientFormModal.tsx` stating that it only applies to Trojan / Shadowsocks clients and is ignored for other protocols. Ideally something similar could be added near "Hysteria Auth" clarifying it's the credential Hysteria actually uses. ### Additional context Not a functional bug — the field works correctly for the protocols that use it. This is purely a clarity/UX gap that could save other users from the same "why is this here / does it matter" confusion.
Author
Owner

@github-actions[bot] commented on GitHub (Jul 5, 2026):

Confirmed against the source. buildUserAccount in internal/xray/api.go (lines ~452-587) reads password only in the trojan (line 500) and shadowsocks (line 514) cases; vmess, vless, and wireguard never touch user["password"], and hysteria reads a separate auth field (line 541) instead.

On the frontend, ClientFormModal.tsx currently renders the Password field (line 746, Form.Item label={t('pages.clients.password')}) and the Hysteria Auth field (line 760, Form.Item label={t('pages.clients.hysteriaAuth')}) unconditionally in the "Credentials" tab — there is no showXxx-style protocol guard around either one (unlike flow, vmessSecurity, and the WireGuard fields, which are gated by showFlow / showSecurity / showWireguard), and neither Form.Item currently passes a tooltip prop. So the request is accurate: as it stands, Password and Hysteria Auth are shown for every protocol with no indication that only Trojan/Shadowsocks use the former and only Hysteria uses the latter.

The codebase already has a tooltip convention for this exact case — e.g. Form.Item label={t('pages.clients.limitIp')} tooltip={t('pages.clients.limitIpDesc')} and the totalGBDesc / groupDesc / renewDesc keys in internal/web/translation/en-US.json — so adding passwordDesc / hysteriaAuthDesc keys (added to all 13 locale files) and wiring them as tooltip props on those two Form.Items would follow the existing pattern rather than introduce a new one.

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:4884668093 --> @github-actions[bot] commented on GitHub (Jul 5, 2026): Confirmed against the source. `buildUserAccount` in `internal/xray/api.go` (lines ~452-587) reads `password` only in the `trojan` (line 500) and `shadowsocks` (line 514) cases; `vmess`, `vless`, and `wireguard` never touch `user["password"]`, and `hysteria` reads a separate `auth` field (line 541) instead. On the frontend, `ClientFormModal.tsx` currently renders the Password field (line 746, `Form.Item label={t('pages.clients.password')}`) and the Hysteria Auth field (line 760, `Form.Item label={t('pages.clients.hysteriaAuth')}`) unconditionally in the "Credentials" tab — there is no `showXxx`-style protocol guard around either one (unlike `flow`, `vmessSecurity`, and the WireGuard fields, which are gated by `showFlow` / `showSecurity` / `showWireguard`), and neither `Form.Item` currently passes a `tooltip` prop. So the request is accurate: as it stands, Password and Hysteria Auth are shown for every protocol with no indication that only Trojan/Shadowsocks use the former and only Hysteria uses the latter. The codebase already has a `tooltip` convention for this exact case — e.g. `Form.Item label={t('pages.clients.limitIp')} tooltip={t('pages.clients.limitIpDesc')}` and the `totalGBDesc` / `groupDesc` / `renewDesc` keys in `internal/web/translation/en-US.json` — so adding `passwordDesc` / `hysteriaAuthDesc` keys (added to all 13 locale files) and wiring them as `tooltip` props on those two `Form.Item`s would follow the existing pattern rather than introduce a new one. *This reply was generated automatically; a maintainer may follow up.*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#4034
No description provided.