|
@@ -38,7 +38,6 @@ class SecurityController extends Controller
|
|
|
$form->handleRequest($request);
|
|
|
if ($form->isSubmitted() && $form->isValid())
|
|
|
{
|
|
|
- $user = $form->getData();
|
|
|
$encoded = $encoder->encodePassword($user, $user->getPassword());
|
|
|
$user->setPassword($encoded);
|
|
|
$em = $this->getDoctrine()->getManager();
|
|
@@ -62,7 +61,6 @@ class SecurityController extends Controller
|
|
|
if ($form->isSubmitted() && $form->isValid())
|
|
|
{
|
|
|
$em = $this->getDoctrine()->getManager();
|
|
|
- $user = $form->getData();
|
|
|
$em->flush();
|
|
|
$this->addFlash('success', 'L\'utilisateur a été modifié');
|
|
|
return $this->redirectToRoute('admin_index');
|
|
@@ -148,5 +146,12 @@ class SecurityController extends Controller
|
|
|
return $this->redirectToRoute('admin_index');
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @Route("/resetpassword/{token}", name="security_resetpassword")
|
|
|
+ */
|
|
|
+ public function resetPasswordAction(User $user)
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
}
|