java.lang.Object
com.fiap.tech_challenge.parte1.ms_users.validators.LoginValidator
All Implemented Interfaces:
UserValidator

@Component public class LoginValidator extends Object implements UserValidator
Validator that checks if a given login is already registered in the system.

Implements the UserValidator interface and uses UserRepository to verify login uniqueness.

  • Constructor Details

    • LoginValidator

      public LoginValidator(UserRepository userRepository)
      Constructs a LoginValidator with the given UserRepository.
      Parameters:
      userRepository - the repository used to check if the login already exists.
  • Method Details