mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #5803] [Feature]: Add a tooltip/hint to the "Password" field in the client form clarifying which protocols use it #4034
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#4034
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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):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.IteminClientFormModal.tsxstating 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.
@github-actions[bot] commented on GitHub (Jul 5, 2026):
Confirmed against the source.
buildUserAccountininternal/xray/api.go(lines ~452-587) readspasswordonly in thetrojan(line 500) andshadowsocks(line 514) cases;vmess,vless, andwireguardnever touchuser["password"], andhysteriareads a separateauthfield (line 541) instead.On the frontend,
ClientFormModal.tsxcurrently 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 noshowXxx-style protocol guard around either one (unlikeflow,vmessSecurity, and the WireGuard fields, which are gated byshowFlow/showSecurity/showWireguard), and neitherForm.Itemcurrently passes atooltipprop. 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
tooltipconvention for this exact case — e.g.Form.Item label={t('pages.clients.limitIp')} tooltip={t('pages.clients.limitIpDesc')}and thetotalGBDesc/groupDesc/renewDesckeys ininternal/web/translation/en-US.json— so addingpasswordDesc/hysteriaAuthDesckeys (added to all 13 locale files) and wiring them astooltipprops on those twoForm.Items would follow the existing pattern rather than introduce a new one.This reply was generated automatically; a maintainer may follow up.