Removed unused function
This commit is contained in:
parent
fb6c4e58d0
commit
336bb589e7
@ -31,19 +31,6 @@ public class EmployeeServiceImpl implements EmployeeService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private EntranceRepository entranceRepository;
|
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
|
@Override
|
||||||
public ResponseEntity<EmployeeDTO> getUserInfo(Authentication auth) {
|
public ResponseEntity<EmployeeDTO> getUserInfo(Authentication auth) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user