Browse Source

correction id -> username

Clément K 4 năm trước cách đây
mục cha
commit
ff6022eca3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Controller/LoginController.php

+ 1 - 1
src/Controller/LoginController.php

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