I am using FOSUserBundle. I have implemented my own user entity with additional class variables. Registration, login, and lost password are working as expected. :-)
I need to add additional requirements to the password validation. I found a Symfony article in the Symfony docs. 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 or Change Password page.
Advice and documentation pointers will be very welcome.
Thanks in advance.