Przeglądaj źródła

correction id -> username

Clément K 4 lat temu
rodzic
commit
ff6022eca3
1 zmienionych plików z 1 dodań i 1 usunięć
  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', [