mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5379] [Feature]: Allow users to log in to the dashboard to query data. #3767
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#3767
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 @Sora39831 on GitHub (Jun 16, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5379
Is your feature request related to a problem?
Issue Description:
Currently, panel users have accounts and passwords, but they are unable to log in.
Expected Behavior:
We would like users to be able to log in to the panel and view their own expiration dates and traffic/data usage.
Suggested Solution:
Please enable user login functionality on the panel, and display expiration date and traffic usage information on the user dashboard.
Describe the solution you'd like
After login, the user should see a dashboard with:
Upload / Download usage (e.g., 0 B)
Total traffic limit and usage (e.g., 0 B / 50.00 GB)
Remaining traffic (e.g., 50.00 GB)
Expiration date (e.g., Unlimited)
Last online time
Account status (e.g., Active)
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jun 16, 2026):
Most of the data you are requesting is already exposed through the built-in subscription info page. When a client's subscription URL is opened in a browser (or appended with
?view=html), 3x-ui serves a dedicated HTML page that shows all of the following — confirmed ininternal/sub/controller.go(HTML detection at line 152) and the React componentfrontend/src/pages/sub/SubPage.tsx:The subscription URL is available in the panel for each client and is the intended self-service endpoint. Access is controlled by the subscription ID (
SubID), which acts as a per-client token — no username/password is required, and the page is on the subscription server port (configured separately from the main panel).What this issue is requesting beyond the above is a traditional username/password login that admits a client into the main panel UI. That is genuinely not implemented. The current
Clientmodel (internal/database/model/model.go, lines 586–605) carriesPasswordandAuthfields that are used for proxy protocol authentication, not for panel login. Panel login (Usermodel, lines 37–43) is limited to administrator accounts.Before treating this as a new feature request, it is worth checking whether the subscription info page already satisfies the use case. If the goal is specifically to give clients a credential-based login to a portal (rather than a URL-based token), that would require new work: a separate auth layer for the
Cliententity and a dedicated client-facing panel view.This reply was generated automatically; a maintainer may follow up.
@Sora39831 commented on GitHub (Jun 16, 2026):
One more thing – after users successfully log in, they should also be able to view their own sub link on the dashboard, so they can easily copy it for use in their client software.
@pr0l commented on GitHub (Jun 16, 2026):
Doesn't this feature already fulfill the role of a subscription page, providing all relevant information to the client?
@MHSanaei commented on GitHub (Jul 3, 2026):
Everything listed here is already provided by the built-in subscription info page: opening a client's subscription URL in a browser shows upload/download usage, total limit and remaining traffic, expiry date, last online time, account status, and the connection links themselves with QR codes and copy buttons.
The subscription URL acts as the per-client credential, so no separate username/password is needed — just share each client's subscription link with them (which also answers the follow-up: the page is the sub link).
Closing as already available; if you specifically need credential-based login instead of the tokenized link, please open a new focused request explaining what the subscription page cannot cover.