代码更新
This commit is contained in:
@@ -92,9 +92,6 @@ public class UserServiceImpl implements UserService {
|
||||
if (userRepository.findByUsername(resources.getUsername()) != null) {
|
||||
throw new EntityExistException(User.class, "username", resources.getUsername());
|
||||
}
|
||||
if (userRepository.findByEmail(resources.getEmail()) != null) {
|
||||
throw new EntityExistException(User.class, "email", resources.getEmail());
|
||||
}
|
||||
userRepository.save(resources);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user