Skip to content

Bug: Case-sensitive email domain validation #40045

@sahillllllllll-bit

Description

@sahillllllllll-bit

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

  1. Go to Admin Panel → Accounts → Registration

  2. Set Allowed Domains List to:
    gmail.com

  3. Save the setting

  4. Attempt to register with:
    test@GMAIL.com

  5. Observe that registration fails ;

  6. Try again with:
    test@gmail.com

  7. Observe that this succeeds

Expected Behaviour

Email domain validation should be case-insensitive, allowing domains like GMAIL.com when gmail.com is configured.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions