mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #3880] Login API returns identical response for wrong credentials and missing 2FA code #2625
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#2625
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 @hexlouw on GitHub (Mar 3, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3880
Is your feature request related to a problem?
When
twoFactorCodeis not provided but credentials are correct, the server returns the same response as for wrong credentials:This makes it impossible for third-party clients to implement an adaptive login flow — showing the 2FA field only when actually needed.
Describe the solution you'd like
Suggested fix
Return distinct messages based on the actual failure reason:
Describe alternatives you've considered
No response
Checklist