fixed redirect route after password reset (#345)
This commit is contained in:
@@ -45,6 +45,14 @@ class ProfileController extends AbstractController
|
|||||||
$this->encoder = $encoder;
|
$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"})
|
* @Route(path="/{username}", name="user_profile", methods={"GET"})
|
||||||
* @Security("is_granted('view', profile)")
|
* @Security("is_granted('view', profile)")
|
||||||
|
|||||||
Reference in New Issue
Block a user