Removed unused function

This commit is contained in:
Индекс Зиро 2025-02-19 12:42:02 +03:00
parent fb6c4e58d0
commit 336bb589e7

View File

@ -31,19 +31,6 @@ public class EmployeeServiceImpl implements EmployeeService {
@Autowired
private EntranceRepository entranceRepository;
public ResponseEntity<Object> checkIfUserExists(String login) {
try {
if(employeeRepository.existsByLogin(login)) {
return new ResponseEntity<>(HttpStatus.OK);
}
else {
return new ResponseEntity<>(HttpStatus.UNAUTHORIZED);
}
}
catch(Exception e) {
return new ResponseEntity<>(HttpStatus.BAD_REQUEST);
}
}
@Override
public ResponseEntity<EmployeeDTO> getUserInfo(Authentication auth) {