Custom special characters
Restrict the special-character set to a custom list. Useful for systems with limited allowed characters.
- At least 8 characters — fails
- At least one uppercase letter — fails
- At least one lowercase letter — fails
- At least one number — fails
- At least one special character — fails
Snippet
Copy the example to your clipboard.
<PasswordChecklist
value={password}
rules={["minLength", "capital", "lowercase", "number", "specialChar"]}
minLength={8}
specialCharsList="!@#$%^&*"
/>