mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
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#5809
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?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/5183
Author: @rqzbeh
Created: 6/10/2026
Status: ✅ Merged
Merged: 6/10/2026
Merged by: @MHSanaei
Base:
main← Head:fix/cli-api-token📝 Commits (2)
1c04bb2fix: accurately retrieve and generate API tokens via CLI with hashed storage (#5145)596ebf9Merge branch 'main' into fix/cli-api-token📊 Changes
1 file changed (+18 additions, -1 deletions)
View changed files
📝
main.go(+18 -1)📄 Description
Fixes #5145
Summary
This PR addresses the silent failure when running /app/x-ui setting -getApiToken\ via CLI.
Since commit \
4813a2fe, API tokens are hashed at rest and the plaintext is shown only exactly once at creation time. The CLI command -getApiToken\ was still attempting to print the token value from the database, which is now always empty. In addition, the CLI command was failing to initialize the database, meaning it failed entirely.To resolve this, the PR implements the following updates to \GetApiToken():
Type of change
Areas affected
Checklist
pm run lint,
pm run typecheck, and
pm run build\ pass.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.