This commit is contained in:
afornerot 2024-11-26 20:47:39 +01:00
parent 94dd533be5
commit 4b7fd19685

View File

@ -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()) {