What is the best way to implement change password functionality in Symfony2? Right now I\'m using this:
$builder->add(\'password\', \'repeated\', array(
You have to either create another model with two fields:
Or add a non-persisted property to your user model like the FOSUserBundle does (see the plainPassword property).
So once you checked both current and new password are valid, you encode the new password and replace the old one with it.