enhancementgood first issuehelp wanted
仓库指标
- 星标
- (109 个星标)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
Add a new validator to packages/form/src/validators.js file of "password".
-
args (and defaultArgs) should include: "minLength" - default 8 "maxLength" - default 20 "minLetters" - default 0 "minNumbers" - default 0 "minSpecialCharachters" - default 0 "minUppercase" - default 0 "minLowecase" - default 0
-
should have a matching error message depend on the args
-
can use the second post from here to implement using regex: https://stackoverflow.com/questions/19605150/regex-for-password-must-contain-at-least-eight-characters-at-least-one-number-a
-
should add unit test
-
should add documentation in Form -> Validators -> Build in validators