From 2dbf433474f67bc40bba0bb8204dfe62f3f28b41 Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Sun, 7 Oct 2018 19:12:59 +0200 Subject: [PATCH] fixed redirect route after password reset (#345) --- src/Controller/ProfileController.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Controller/ProfileController.php b/src/Controller/ProfileController.php index f95b264d..be4dea2f 100644 --- a/src/Controller/ProfileController.php +++ b/src/Controller/ProfileController.php @@ -45,6 +45,14 @@ class ProfileController extends AbstractController $this->encoder = $encoder; } + /** + * @Route(path="/", name="fos_user_profile_show", methods={"GET"}) + */ + public function profileAction() + { + return $this->redirectToRoute('user_profile', ['username' => $this->getUser()->getUsername()]); + } + /** * @Route(path="/{username}", name="user_profile", methods={"GET"}) * @Security("is_granted('view', profile)")