@@ -11,17 +11,17 @@ |
||
| 11 | 11 | |
| 12 | 12 | class LoginController extends AbstractController |
| 13 | 13 | { |
| 14 | - /** |
|
| 15 | - * @Route("/login/", name="ribsadmin_login") |
|
| 16 | - * @param CsrfTokenManagerInterface $token |
|
| 17 | - * @param AuthenticationUtils $auth_utils |
|
| 18 | - * @return Response |
|
| 19 | - */ |
|
| 14 | + /** |
|
| 15 | + * @Route("/login/", name="ribsadmin_login") |
|
| 16 | + * @param CsrfTokenManagerInterface $token |
|
| 17 | + * @param AuthenticationUtils $auth_utils |
|
| 18 | + * @return Response |
|
| 19 | + */ |
|
| 20 | 20 | public function loginAction(AuthenticationUtils $auth_utils): Response |
| 21 | 21 | { |
| 22 | - $csrf_token = $this->has('security.csrf.token_manager') |
|
| 23 | - ? $this->get('security.csrf.token_manager')->getToken('authenticate')->getValue() |
|
| 24 | - : null; |
|
| 22 | + $csrf_token = $this->has('security.csrf.token_manager') |
|
| 23 | + ? $this->get('security.csrf.token_manager')->getToken('authenticate')->getValue() |
|
| 24 | + : null; |
|
| 25 | 25 | |
| 26 | 26 | if ($auth_utils->getLastAuthenticationError()) { |
| 27 | 27 | $this->addFlash("error-flash", "Your login or password are incorrect"); |