public function changePasswordUpdateAction()
{
$user = $this->getUser();
$form = $this->container->get('fos_user.form.change_password');
$process = $form->process($user);
if ($process) {
$this->setFlash('fos_user_user_password', 'success');
$url = $this->container->get('router')->generate('fos_user_user_show', array('username' => $user->getUsername()));
return new RedirectResponse($url);
}
return $this->container->get('templating')->renderResponse('FOSUserBundle:User:changePassword.html.' . $this->getEngine(), array('form' => $form));
}