261001_02_ENH: 사용자 ID 자리수 허용 조건 2~16자리로 변경 #30

Merged
gitadmin merged 1 commits from develop into master 2026-10-01 17:08:24 +09:00

View File

@@ -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는 한글, 영소문자, 숫자만 허용합니다.");