-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Bug: Case-sensitive email domain validation #40045
Copy link
Copy link
Labels
Description
Description
Email domain validation currently treats domains as case-sensitive.
This causes valid email addresses to be rejected when the domain casing differs from the configured allowed or blocked domain lists.
For example, test@GMAIL.com is rejected when gmail.com is present in the allowed domains list.
Since domain names are case-insensitive by standard, this behavior leads to incorrect validation.
Steps to Reproduce
-
Go to Admin Panel → Accounts → Registration
-
Set
Allowed Domains Listto:
gmail.com -
Save the setting
-
Attempt to register with:
test@GMAIL.com -
Observe that registration fails ;
-
Try again with:
test@gmail.com -
Observe that this succeeds
Expected Behaviour
Email domain validation should be case-insensitive, allowing domains like GMAIL.com when gmail.com is configured.
Reactions are currently unavailable