mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #2576] [CLOSED] Allow uppercase letters in email field #5152
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#5152
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/2576
Author: @nima1024m
Created: 10/8/2024
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
ecd91aeAllowed uppercase letters in email field📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
web/service/inbound.go(+2 -2)📄 Description
Dear MHSanaei,
I hope this message finds you well. First, I want to express my sincere appreciation for your dedicated work on the 3x-ui project. Your efforts have greatly enhanced the usability of the xray proxy application, and I commend you for your commitment to improving the software.
I am reaching out to address a recent change that has caused some challenges for users, including myself. The decision to restrict emails to only lowercase letters has made it difficult for many of us to upgrade to newer versions of 3x-ui. While I understand the intention behind preventing spaces in emails, I believe that allowing uppercase letters is crucial for maintaining readability and facilitating user management. The diversity in email formatting is particularly important for many users who have utilized uppercase letters in their existing email addresses.
To address this issue, I have prepared a pull request aimed at restoring the ability to use uppercase letters in emails. The current regex pattern used for email validation is:
^[a-z0-9@._-]+$This pattern restricts email addresses to lowercase letters and specific characters, limiting user flexibility. My proposed regex pattern is:
^[\w@.-]+$Technical Changes Behind the New Regex Pattern:
@,., and-are retained in both patterns, ensuring that standard email formatting remains valid.This adjustment will benefit not only my use case but also many other users who rely on the flexibility of character choices for better user identification and management.
I kindly request that you consider accepting this pull request. It would greatly enhance the experience for all users and allow us to continue benefiting from your excellent work on this project.
Thank you for your attention to this matter, and I appreciate your continued efforts in developing 3x-ui.
Best regards,
Nima
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.