From 2760003ad0f5eb1667a9453845cb3569a297a3cf Mon Sep 17 00:00:00 2001 From: Junho Yu <95111999+ryuwon2407@users.noreply.github.com> Date: Fri, 22 Nov 2024 03:18:57 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Test[#9]:=20=ED=94=84=EB=A1=A0?= =?UTF-8?q?=ED=8A=B8=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EB=B0=8F=20=EC=9D=91?= =?UTF-8?q?=EB=8B=B5=EC=8B=9C=EA=B0=84=203=EB=B6=84=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/groom/swipo/domain/user/controller/UserController.java | 2 +- .../groom/swipo/domain/user/util/VerificationCodeGenerator.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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자리 숫자 생성