관리자 관리 수정
This commit is contained in:
@@ -8,8 +8,8 @@ import lombok.Getter;
|
||||
@AllArgsConstructor
|
||||
public enum StatusType implements EnumType {
|
||||
ACTIVE("활성"),
|
||||
INACTIVE("비활성"),
|
||||
DELETED("삭제");
|
||||
INACTIVE("미사용"),
|
||||
PENDING("보류");
|
||||
|
||||
private final String desc;
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.kamco.cd.kamcoback.common.utils;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public class CommonStringUtils {
|
||||
|
||||
/**
|
||||
* 영문, 숫자, 특수문자를 모두 포함하여 8~20자 이내의 비밀번호
|
||||
*
|
||||
* @param password
|
||||
* @return
|
||||
*/
|
||||
public static boolean isValidPassword(String password) {
|
||||
String passwordPattern =
|
||||
"^(?=.*[A-Za-z])(?=.*\\d)(?=.*[!@#$%^&*()_+\\-\\[\\]{};':\"\\\\|,.<>/?]).{8,20}$";
|
||||
return Pattern.matches(passwordPattern, password);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user