Skip to content

Conversation

@qbey
Copy link
Member

@qbey qbey commented Feb 10, 2026

Purpose

Our products mostly rely on email regardless of their case.

Next step would be to normalize email to lower case when storing them in database (or sending them to dimail if not done yet).

Proposal

  • disregard email case when looking for user with specific email address

@qbey qbey self-assigned this Feb 10, 2026
@qbey qbey added the backend label Feb 10, 2026
@qbey qbey force-pushed the qbey/email-ignore-case branch from 53250b6 to 29c62db Compare February 10, 2026 21:50
@qbey qbey requested a review from mjeammet February 10, 2026 21:50
@mjeammet mjeammet linked an issue Feb 11, 2026 that may be closed by this pull request
Comment on lines 62 to 64
# Try with mixed case - should also fail
with pytest.raises(EmailAlreadyKnownException):
factories.InvitationFactory(email="[email protected]")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you swapped the comments / the actual tests

CHANGELOG.md Outdated

- 🏗️(core) migrate from pip to uv
- ✨(front) add show invitations mails domains access #1040
- 🚸(email) we should ignore case when looking for existing emails #1056
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not very important but I realize you add more recent changelog lines below existing lines when I add them above.

Copy link
Member

@mjeammet mjeammet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a couple lines to unswap and we're good to go !

If you have a bit more time, we could add the dimail part in this PR but i'll do it soon otherwise.

@qbey qbey requested a review from mjeammet February 12, 2026 08:46
Our products mostly rely on email regardless of their case.

Next step would be to normalize email to lower case when storing
them in database (or sending them to dimail if not done yet).
@qbey qbey force-pushed the qbey/email-ignore-case branch from 39a7723 to aaa9b27 Compare February 12, 2026 08:47
@qbey qbey merged commit aaa9b27 into main Feb 12, 2026
14 of 15 checks passed
@qbey qbey deleted the qbey/email-ignore-case branch February 12, 2026 08:47
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make mailboxes case-insensitive

2 participants