I am using FOSUserBundle.
I have implemented my own user entity with additional class variables. Registration, login, and lost password are working fine.
I need to add additional requirements to the password validation.
I found a Symfony article at http://symfony.com/doc/current/reference/constraints/Callback.html.
This article explains how to create a validation method and reference it in the validation.xml file with a Callback constraint.
I have implemented the callback and changed validation.xml and everything is working just fine for registration.
What I haven't figured out is how to get it working for password changes via the lost password link (I haven't implemented a change password page, yet).
Advice and documentation pointers will be very welcome.
Thanks in advance.