Merge pull request '261001_02_ENH: 사용자 ID 자리수 허용 조건 2~16자리로 변경' (#30) from develop into master
Reviewed-on: #30
This commit is contained in:
@@ -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는 한글, 영소문자, 숫자만 허용합니다.");
|
||||
|
||||
Reference in New Issue
Block a user