fixed redirect route after password reset (#345)

This commit is contained in:
Kevin Papst
2018-10-07 19:12:59 +02:00
committed by GitHub
parent 56ac642446
commit 2dbf433474

View File

@@ -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)")