api 모듈 수정
This commit is contained in:
@@ -27,8 +27,7 @@ public class CreateAdminValidator implements Validator {
|
||||
.filter(password -> !password.matches(PASSWORD_REGEX))
|
||||
.ifPresent(password -> errors.rejectValue("password", "valid.common.password.wrong"));
|
||||
|
||||
Optional.ofNullable(vo.getRoleIds())
|
||||
.filter(ids -> ids.size() < 1)
|
||||
Optional.ofNullable(vo.getRoleId())
|
||||
.ifPresent(
|
||||
ids ->
|
||||
errors.rejectValue(
|
||||
|
||||
Reference in New Issue
Block a user