| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function login(AuthenticationUtils $authenticationUtils): Response |
||
| 20 | { |
||
| 21 | if ($this->getUser()) { |
||
| 22 | return $this->redirectToRoute('index'); |
||
| 23 | } |
||
| 24 | |||
| 25 | $error = $authenticationUtils->getLastAuthenticationError(); |
||
| 26 | $lastUsername = $authenticationUtils->getLastUsername(); |
||
| 27 | |||
| 28 | return $this->render('security/login.html.twig', |
||
| 29 | [ |
||
| 30 | 'last_username' => $lastUsername, |
||
| 31 | 'error' => $error, |
||
| 32 | 'GOOGLE_RECAPTCHA_SITE_KEY' |
||
| 33 | ] |
||
| 34 | ); |
||
| 35 | } |
||
| 36 | |||
| 45 |