This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Extending FOSUserBundle password validation

Discuss Symfony 2 bundles here

Extending FOSUserBundle password validation

by dpatterson » Fri Oct 31, 2014 1:28 am

Hello.
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.
dpatterson
Junior Member
 
Posts: 12
Joined: Wed Feb 12, 2014 7:00 pm

Re: Extending FOSUserBundle password validation

by dpatterson » Sat Jan 10, 2015 7:52 am

So then. Not a single response. Bummer.
In the end, because of this and numerous other issues, I gave up on FOSUserBundle and implemented my own user entity and everything around it.
The truth is is it took less time to do that than I had already spent trying to integrate FOSUserBundle. :frown:
So, problem, not question, solved.
dpatterson
Junior Member
 
Posts: 12
Joined: Wed Feb 12, 2014 7:00 pm