Compare commits

...

2 Commits

Author SHA1 Message Date
2ecdbf8d72 Merge pull request 'Removed manual check of email' () from manual-email-check into develop
Reviewed-on: 
2025-03-31 13:38:37 +02:00
316ca7c042 Removed manual check of email
New users would never be able to login because of the manual checking of email.
This has happened since the requirements and code has changed over time and we
missed the manual constraint.

This is related to the fix where we removed the database constraint.
2025-03-31 13:33:46 +02:00

@ -17,9 +17,6 @@ public class UserService {
if (appUserRepository.existsByUsername(username)) {
throw new IllegalArgumentException("Username already exists");
}
if (appUserRepository.existsByEmail(email)) {
throw new IllegalArgumentException("Email already exists");
}
AppUser newUser = new AppUser(username, email, "USER");
appUserRepository.save(newUser);