[GH-ISSUE #5379] [Feature]: Allow users to log in to the dashboard to query data. #3767

Closed
opened 2026-10-31 20:34:48 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @Sora39831 on GitHub (Jun 16, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5379

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?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
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? - [ ] I'd like to implement this feature myself and open a PR. - [x] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
bsakaguchi 2026-10-31 20:34:48 +07:00
Author
Owner

@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 in internal/sub/controller.go (HTML detection at line 152) and the React component frontend/src/pages/sub/SubPage.tsx:

  • Upload and download usage
  • Total traffic limit and current usage
  • Remaining traffic
  • Expiration date (or "Unlimited")
  • Last online time
  • Account status (active / expired / traffic exhausted)
  • QR codes and copy buttons for all proxy links

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 Client model (internal/database/model/model.go, lines 586–605) carries Password and Auth fields that are used for proxy protocol authentication, not for panel login. Panel login (User model, 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 Client entity and a dedicated client-facing panel view.

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

<!-- gh-comment-id:4716196325 --> @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 in `internal/sub/controller.go` (HTML detection at line 152) and the React component `frontend/src/pages/sub/SubPage.tsx`: - Upload and download usage - Total traffic limit and current usage - Remaining traffic - Expiration date (or "Unlimited") - Last online time - Account status (active / expired / traffic exhausted) - QR codes and copy buttons for all proxy links 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 `Client` model (`internal/database/model/model.go`, lines 586–605) carries `Password` and `Auth` fields that are used for proxy protocol authentication, not for panel login. Panel login (`User` model, 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 `Client` entity and a dedicated client-facing panel view. *This reply was generated automatically; a maintainer may follow up.*
Author
Owner

@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.

<!-- gh-comment-id:4716263504 --> @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.
Author
Owner

@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?

<!-- gh-comment-id:4716489129 --> @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?
Author
Owner

@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.

<!-- gh-comment-id:4873758970 --> @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.
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#3767
No description provided.