diff --git a/src/main/java/com/kri/contact/server/service/UserService.java b/src/main/java/com/kri/contact/server/service/UserService.java index f9f6478..e21f8b7 100644 --- a/src/main/java/com/kri/contact/server/service/UserService.java +++ b/src/main/java/com/kri/contact/server/service/UserService.java @@ -274,8 +274,8 @@ public class UserService { if (userId == null || userId.isBlank()) { return new DataVerificationDto(false, "사용자 ID", "사용자 ID가 비었습니다."); } - if (userId.length() < 3 || userId.length() > 16) { - return new DataVerificationDto(false, "사용자 ID", "사용자 ID는 3~15 자리여야 합니다."); + if (userId.length() < 2 || userId.length() > 16) { + return new DataVerificationDto(false, "사용자 ID", "사용자 ID는 2~16 자리여야 합니다."); } if (!userId.matches("^[a-z가-힣][a-z0-9가-힣]+$")) { return new DataVerificationDto(false, "사용자 ID", "사용자 ID는 한글, 영소문자, 숫자만 허용합니다.");