From 113e98a3de2de6a3e6b50b848506787ac678ccbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Weitzel?= Date: Tue, 9 Aug 2022 17:11:39 -0300 Subject: [PATCH] Updated AuthController --- .../api/produc/sup/security/controllers/AuthController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/api/produc/sup/security/controllers/AuthController.java b/src/main/java/com/api/produc/sup/security/controllers/AuthController.java index 4785536..0a953b1 100644 --- a/src/main/java/com/api/produc/sup/security/controllers/AuthController.java +++ b/src/main/java/com/api/produc/sup/security/controllers/AuthController.java @@ -147,8 +147,7 @@ public ResponseEntity login(@Valid @RequestBody LoginUsuarioDTO loginUsuario, return new ResponseEntity("Campos Inválidos!!", HttpStatus.BAD_REQUEST); } - if (!(usuarioService.existsByUsername(loginUsuario.getUsername())) - || !(usuarioService.existsByPassword(loginUsuario.getPassword())) ) { + if (!(usuarioService.existsByUsername(loginUsuario.getUsername())) ) { return new ResponseEntity("El Usuario no existe. Comprobar username y password!!", HttpStatus.BAD_REQUEST); }