What is the best way to implement change password functionality in Symfony2? Right now I\'m using this:
$builder->add(\'password\', \'repeated\', array(
Can't You get old password from User before binding form?
// in action: $oldpassword = $user->getPassword(); if ($request->getMethod() == 'POST') { $form->bindRequest($request); if ($form->isValid()) { // check password here (by hashing new one)