Methods
check() → {boolean}
- Description:
비밀번호 유효성 검증 실행
Example
const EzPasswordChecker = (new nexacro.EzPasswordCheckerBuilder())
.addRule(...nexacro.EzPasswordRule.RULES)
.addRule(nexacro.EzPasswordRule.RULES.SIZE, 8, 20)
.build();
const checker = new EzPasswordChecker();
var isValid = checker.check(newPw, oldPw, confirmPw);
Returns:
비밀번호 유효 여부
- Type
- boolean
checkPattern() → {boolean}
- Description:
비밀번호 유효성 검증 실행 기본 검증을 생략하고 새로운 패스워드의 패턴에만 집중합니다.
Example
const EzPasswordChecker = (new nexacro.EzPasswordCheckerBuilder())
.addRule(...nexacro.EzPasswordRule.RULES)
.addRule(nexacro.EzPasswordRule.RULES.SIZE, 8, 20)
.build();
const checker = new EzPasswordChecker();
var isValid = checker.checkPattern(newPw);
Returns:
비밀번호 유효 여부
- Type
- boolean