| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 22 | public function login(AuthenticationUtils $authenticationUtils): Response |
||
| 23 | { |
||
| 24 | if ($this->getUser()) { |
||
| 25 | return $this->redirectToRoute('admin_index'); |
||
| 26 | } |
||
| 27 | |||
| 28 | $error = $authenticationUtils->getLastAuthenticationError(); |
||
| 29 | $lastUsername = $authenticationUtils->getLastUsername(); |
||
| 30 | |||
| 31 | return $this->render('security/login.html.twig', [ |
||
| 32 | 'last_username' => $lastUsername, |
||
| 33 | 'error' => $error, |
||
| 34 | ]); |
||
| 42 |