Open leonleoff opened 10 months ago
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!
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.