Skip to content

Commit

Permalink
Updated AuthController
Browse files Browse the repository at this point in the history
  • Loading branch information
andresWeitzel committed Aug 9, 2022
1 parent 4ae899a commit 113e98a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ public ResponseEntity<?> login(@Valid @RequestBody LoginUsuarioDTO loginUsuario,
return new ResponseEntity<String>("Campos Inválidos!!", HttpStatus.BAD_REQUEST);
}

if (!(usuarioService.existsByUsername(loginUsuario.getUsername()))
|| !(usuarioService.existsByPassword(loginUsuario.getPassword())) ) {
if (!(usuarioService.existsByUsername(loginUsuario.getUsername())) ) {
return new ResponseEntity<String>("El Usuario no existe. Comprobar username y password!!", HttpStatus.BAD_REQUEST);
}

Expand Down

0 comments on commit 113e98a

Please sign in to comment.