|
@@ -51,7 +51,7 @@ class LoginController extends AbstractController
|
|
|
if ($profile) {
|
|
if ($profile) {
|
|
|
if ($encoder->isPasswordValid($profile, $passwd)) {
|
|
if ($encoder->isPasswordValid($profile, $passwd)) {
|
|
|
$session->set('user', $id);
|
|
$session->set('user', $id);
|
|
|
- return $this->render('profile/index.html.twig');
|
|
|
|
|
|
|
+ return $this->redirectToRoute('profile', ['id' => $session->get('user')]);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
return $this->render('login/index.html.twig', [
|
|
return $this->render('login/index.html.twig', [
|