Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想实现一个 Symfony 验证器来验证注册表单的密码,这意味着我想要一个“密码确认”字段。我如何制作一个以某种方式将这些字段联系在一起的验证器?我需要检查密码和密码确认值是否匹配。
Symfony 中的这些东西是如何正确实现的?
您可以使用 postValidator 。检查文档,有一个密码确认验证示例。