Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HSB-431 fix: email case sensitive in email provider #4042

Merged
merged 3 commits into from
May 15, 2024

Conversation

mirarifhasan
Copy link
Contributor

Closes HSB-431
Closes #4027

Description

This pull request addresses a problem where user emails are treated as case-sensitive during signup. This means that signing up with user@gmail.com and USER@gmail.com would create two separate user entries in the database.

Solution

This PR implements logic to convert all email addresses to lowercase before saving them in the database. This ensures that regardless of the case used during signup, only one user entry will be created for the same email address.

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Additional Information

Nil

@mirarifhasan mirarifhasan self-assigned this May 7, 2024
@mirarifhasan mirarifhasan marked this pull request as ready for review May 7, 2024 04:55
@balub
Copy link
Member

balub commented May 7, 2024

@mirarifhasan can you check all places where we use email to do something like admin user invitation etc to see if this issue may exist.

@mirarifhasan mirarifhasan reopened this May 14, 2024
Copy link
Member

@balub balub left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@mirarifhasan mirarifhasan changed the base branch from release/2024.3.3 to patch May 14, 2024 12:36
@balub balub merged commit b7a3ae2 into patch May 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants