[GH-ISSUE #4360] Bug report - Changing email case only triggers "Duplicate email" error #2971

Closed
opened 2026-10-31 20:29:15 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @dan-dan97 on GitHub (May 13, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4360

Describe the bug

When changing a client's email address where only the letter case is modified (lowercase/uppercase), the system returns an error: Duplicate email: <email>

How to repeat the problem?

  1. Create a client with the email: user
  2. Open the client settings/edit page.
  3. Change the email from user to User
  4. Save the changes.

Expected action

The email should be updated successfully without a duplicate error

Received action

The system returns the error: Duplicate email: User

3x-ui Version

2.9.4

Xray-core Version

26.4.17

Checklist

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
Originally created by @dan-dan97 on GitHub (May 13, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4360 ### Describe the bug When changing a client's email address where only the letter case is modified (lowercase/uppercase), the system returns an error: `Duplicate email: <email>` ### How to repeat the problem? 1. Create a client with the email: `user` 2. Open the client settings/edit page. 3. Change the email from `user` to `User` 4. Save the changes. ### Expected action The email should be updated successfully without a duplicate error ### Received action The system returns the error: `Duplicate email: User` ### 3x-ui Version 2.9.4 ### Xray-core Version 26.4.17 ### Checklist - [x] This bug report is written entirely in English. - [x] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:29:15 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@abdalrahmanx9 commented on GitHub (May 13, 2026):

Email field is case sensitive

<!-- gh-comment-id:4446094517 --> @abdalrahmanx9 commented on GitHub (May 13, 2026): Email field is case sensitive
Author
Owner

@dan-dan97 commented on GitHub (May 15, 2026):

Email field is case sensitive

Ok but it's incorrect to compare editable email with itself while checking for duplicates

<!-- gh-comment-id:4461208799 --> @dan-dan97 commented on GitHub (May 15, 2026): > Email field is case sensitive Ok but it's incorrect to compare editable email with itself while checking for duplicates
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#2971
No description provided.