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

Prevent creation of multiple users with the same email #63

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

leonleoff
Copy link

Implemented a unique constraint on the email field within the User entity to prevent the registration of multiple users with the same email. This is essential as the authentication process relies on the findByEmail method, which must only find one user per email, ensuring integrity in authentication.

Fix: Prevent creation of multiple users with the same email
@nekitbr
Copy link

nekitbr commented Jan 10, 2024

up

I'll need to bookmark this repo, because it's getting a lot of PRs recently, and I didn't know about this one. In the past, I've created my custom beans just to make this check easier, directly on the request DTO, good to know!

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