mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #3081] There is no way to reset password in docker version #2065
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#2065
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 @vgdh on GitHub (Jun 9, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3081
Describe the bug
in previous versions you can do that:
But in vesion v2.6.0 this method doesnt work, panel doesn't accept this password.
And
x-uitool inside the container does't work at all (throws error on each menu command)How to repeat the problem?
Use docker version of the app. Try to reset the password.
Expected action
Reset the password
Received action
Erorrs
3x-ui Version
2.6
Xray-core Version
25.5.16
Checklist
@vkorobov commented on GitHub (Jun 10, 2025):
Starting from version 2.6, 3x-ui uses bcrypt hashed passwords instead of storing them in plain text.
More details in issue #2944.
If you need to manually reset the admin password, follow these steps:
If the user record was modified or deleted, verify that id = 1 refers to the correct user.
@obervinov commented on GitHub (Jul 10, 2025):
It's not working for me
Invalid username or password or two-factor code.Also, the same behavior when I change my password in the admin panel.
It seems like the password hash that is written to the database doesn't match the password hash generated from the input.
@vgdh commented on GitHub (Jul 10, 2025):
@obervinov Thy this for hash generation.
@obervinov commented on GitHub (Jul 10, 2025):
@vgdh thanks! It's working for me.
I had the conflict between internal
x-ui.dbfile in the docker container and the file mounted from the host OS path through the docker volumes. As a result, I ended up with two different DB files with different data. I'm not sure when it happened, but it seems to be an issue specific to my environment.