diff --git a/src/main/java/com/groom/swipo/domain/user/controller/UserController.java b/src/main/java/com/groom/swipo/domain/user/controller/UserController.java index 8fdcd62..911ab64 100644 --- a/src/main/java/com/groom/swipo/domain/user/controller/UserController.java +++ b/src/main/java/com/groom/swipo/domain/user/controller/UserController.java @@ -97,7 +97,7 @@ public ResTemplate getPhoneCheck(@RequestBody PhoneCheckRequest request) { @PostMapping("/phone-verification") @Operation( - summary = "휴대폰 인증", + summary = "휴대폰 인증 검증", description = "사용자가 받은 인증코드와 서버에서 보낸 인증코드를 대조하여 검증", security = {}, responses = { diff --git a/src/main/java/com/groom/swipo/domain/user/util/VerificationCodeGenerator.java b/src/main/java/com/groom/swipo/domain/user/util/VerificationCodeGenerator.java index afffd3d..bfd2968 100644 --- a/src/main/java/com/groom/swipo/domain/user/util/VerificationCodeGenerator.java +++ b/src/main/java/com/groom/swipo/domain/user/util/VerificationCodeGenerator.java @@ -6,7 +6,7 @@ import com.groom.swipo.domain.user.entity.VerificationCode; public class VerificationCodeGenerator { - private static final Integer EXPIRATION_TIME_IN_MINUTES = 5; + private static final Integer EXPIRATION_TIME_IN_MINUTES = 3; public static VerificationCode generateVerificationCode(String to, LocalDateTime sentAt) { String code = generateRandomFourDigitNumber(); // 무작위 4자리 숫자 생성