diff --git a/pennyway-app-external-api/src/main/java/kr/co/pennyway/api/apis/auth/controller/AuthCheckController.java b/pennyway-app-external-api/src/main/java/kr/co/pennyway/api/apis/auth/controller/AuthCheckController.java index a6a6f9145..7f7e18cd6 100644 --- a/pennyway-app-external-api/src/main/java/kr/co/pennyway/api/apis/auth/controller/AuthCheckController.java +++ b/pennyway-app-external-api/src/main/java/kr/co/pennyway/api/apis/auth/controller/AuthCheckController.java @@ -33,6 +33,6 @@ public ResponseEntity checkUsername(@RequestParam @Validated String username) public ResponseEntity findUsername(@RequestParam @Validated String phone) { return ResponseEntity.ok( SuccessResponse.from("username", - authCheckUseCase.findUsername("010-2629-4624"))); + authCheckUseCase.findUsername(phone))); } } diff --git a/pennyway-app-external-api/src/main/java/kr/co/pennyway/api/apis/auth/usecase/AuthCheckUseCase.java b/pennyway-app-external-api/src/main/java/kr/co/pennyway/api/apis/auth/usecase/AuthCheckUseCase.java index fd93b6d30..5d6052c7a 100644 --- a/pennyway-app-external-api/src/main/java/kr/co/pennyway/api/apis/auth/usecase/AuthCheckUseCase.java +++ b/pennyway-app-external-api/src/main/java/kr/co/pennyway/api/apis/auth/usecase/AuthCheckUseCase.java @@ -19,7 +19,6 @@ public boolean checkUsernameDuplicate(String username) { @Transactional(readOnly = true) public String findUsername(String phone) { - System.out.println("phone: " + userService.readUserByPhone("010-2629-4624")); return userService.readUserByPhone(phone) .map(user -> user.getUsername()) .orElse(null);