diff --git a/src/Controller/ProfileController.php b/src/Controller/ProfileController.php index 8099f1f..4827807 100644 --- a/src/Controller/ProfileController.php +++ b/src/Controller/ProfileController.php @@ -15,4 +15,12 @@ class ProfileController extends AbstractController 'controller_name' => 'ProfileController', ]); } + + #[Route('/changepasswd', name: 'app_change_passwd')] + public function changePassword(): Response + { + $this->addFlash('notice', 'Password successfully updated'); + + return $this->redirectToRoute('app_profile'); + } } diff --git a/templates/profile/index.html.twig b/templates/profile/index.html.twig index 1dbea9d..fd8b245 100644 --- a/templates/profile/index.html.twig +++ b/templates/profile/index.html.twig @@ -43,7 +43,12 @@