mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5532] [Bug]: Client QR-code and client link do not contain client email #3859
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#3859
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 @it800 on GitHub (Jun 24, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5532
Describe the bug
When I create a new client, I specify a unique email address, which is then displayed in the client software as the profile name.
Before version 3.4.0, this email address was included in the client QR code and link after the trailing hash sign. In version 3.4.0, the inbound name, or remark, is used instead. Because of this, manual correction is now required.
How to reproduce the problem
Expected behavior
The client's email address is expected to be used
Actual behavior
Both the QR code and the link contain the inbound remark instead of the client's email address.
Relevant logs
Screenshots
No response
3x-ui version
3.4.0
Xray-core version
26.6.22
How did you install 3x-ui?
install.sh script
Operating system
Almalinux 9
Which parts of the panel are affected?
Frontend (UI / panel pages)
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Jun 24, 2026):
This is a confirmed v3.4.0 behavioral change. The client email no longer appears in the
#fragment of panel-displayed share links (copy-link and QR code). The change affects every non-WireGuard protocol and both UI entry points.What changed and where
Two code paths produce the link you see in the panel:
Inbounds page QR modal (
frontend/src/pages/inbounds/qr/QrCodeModal.tsx, line 85):The remark passed to
genAllLinks()isdbInbound.remark || ''— the inbound name only, with no client email appended. The comment atfrontend/src/lib/xray/inbound-link.ts:1041-1043documents the intent:Clients page info/QR modal (
frontend/src/pages/clients/ClientInfoModal.tsx,ClientQrModal.tsx):Both call
/panel/api/clients/subLinks/{subId}, which resolves tointernal/sub/service.go:GetLink→genRemark(). At line 1640-1646,genRemarkbypasses the remark template in panel-display contexts (subscriptionBody == false) and returns onlyfallbackRemark(inbound.Remark, extra)— the inbound name.Note the inconsistency:
QrCodeModal.tsx:61-63explicitly includesclient.emailin WireGuard peer remarks (${dbInbound.remark}-${client.email}), but the non-WireGuard path does not.Subscription imports (client app, not panel copy)
When a client app imports your subscription URL,
subscriptionBodyis set totrue(internal/sub/controller.go:148) and the remark template applies. The default template is:This default does not include the email. To restore the email in subscription-imported links, go to Panel Settings → Subscription → Remark Template and add
{{EMAIL}}, for example:This does not affect what the panel copy-link or QR code shows.
Panel copy-link and QR display
There is no configuration workaround for the panel's copy-link and QR display in v3.4.0; the fragment is set to the inbound remark in both frontend paths described above.
This reply was generated automatically; a maintainer may follow up.