Skip to content

Case-Insensitive Email Validation #904

@semihucan

Description

@semihucan

Description:

Currently, Djoser treats email addresses as case-sensitive during user registration and authentication. Since most email providers (like Gmail) consider email addresses case-insensitive, it would be great if Djoser could automatically normalize email addresses to lowercase before validating them.

Suggested Solution:

It would be useful to either:

Automatically convert email addresses to lowercase when a user registers or logs in.

Provide a configurable option (e.g., CASE_INSENSITIVE_EMAIL = True) to enable case-insensitive email validation.

This would improve user experience by ensuring that emails like User@Example.com and user@example.com are treated as the same.

Benefits:

Better user experience by avoiding issues with email case mismatches.

Aligns with how most email providers handle email addresses.

Thanks for considering this feature!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions