diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index dc46c53..f40cb0f 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -68,7 +68,7 @@ class UserController extends AbstractController if (!$user) { return $this->redirectToRoute('app_admin_user'); } - + $oldpassword=$user->getPassword(); $form = $this->createForm(UserType::class, $user, ['mode' => 'update']); $form->handleRequest($request); if ($form->isSubmitted() && $form->isValid()) {