mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #3029] [MERGED] chore: reset two-factor authentication after changing admin credentials #5332
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#5332
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/3029
Author: @sh1shd
Created: 5/22/2025
Status: ✅ Merged
Merged: 7/2/2025
Merged by: @MHSanaei
Base:
main← Head:fix/two-factor-reset📝 Commits (4)
bd80073chore: addresetTwoFactorargument for main.go5546c27chore: reset two-factor authentication after changing admin credentials6ecdb6echore: reset two-factor authentication after changing admin credentials97bc6a3Merge branch 'main' into fix/two-factor-reset📊 Changes
19 files changed (+104 additions, -23 deletions)
View changed files
📝
main.go(+15 -2)📝
web/html/modals/two_factor_modal.html(+5 -13)📝
web/html/settings.html(+30 -7)📝
web/service/setting.go(+8 -0)📝
web/service/user.go(+10 -0)📝
web/translation/translate.ar_EG.toml(+2 -0)📝
web/translation/translate.en_US.toml(+2 -0)📝
web/translation/translate.es_ES.toml(+2 -0)📝
web/translation/translate.fa_IR.toml(+2 -0)📝
web/translation/translate.id_ID.toml(+2 -0)📝
web/translation/translate.ja_JP.toml(+2 -0)📝
web/translation/translate.pt_BR.toml(+2 -0)📝
web/translation/translate.ru_RU.toml(+2 -0)📝
web/translation/translate.tr_TR.toml(+2 -0)📝
web/translation/translate.uk_UA.toml(+2 -0)📝
web/translation/translate.vi_VN.toml(+2 -0)📝
web/translation/translate.zh_CN.toml(+2 -0)📝
web/translation/translate.zh_TW.toml(+2 -0)📝
x-ui.sh(+10 -1)📄 Description
What is the pull request?
This pull request adds a mechanism where two-factor authentication is reset when admin credentials are changed.
Also now if two-factor authentication is enabled and a user tries to change admin credentials through the panel, a confirmation will be requested.
Fixes #3025
Which part of the application is affected by the change?
Type of Changes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.