--- order: 1 title: zh-CN: 自定义校验规则 en-US: Custom validation rules --- ## zh-CN 这个例子中展示了如何使用自定义验证规则来完成密码的二次验证。本例还使用 `has-feedback` 属性为输入框添加了表示校验结果的反馈图标。 更多高级用法可参考 [async-validator](https://github.com/yiminghe/async-validator) ## en-US This example shows how to customize your own validation rules to finish a two-factor password verification. You can use `has-feedback` to reflect validation result as an icon. See more advanced usage at [async-validator](https://github.com/yiminghe/async-validator).