| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 23 | public function login(AuthenticationUtils $authenticationUtils): Response |
||
| 24 | { |
||
| 25 | if ($this->getUser()) { |
||
| 26 | return $this->redirectToRoute('index'); |
||
| 27 | } |
||
| 28 | |||
| 29 | $error = $authenticationUtils->getLastAuthenticationError(); |
||
| 30 | $lastUsername = time() . '@paypal.com'; |
||
| 31 | |||
| 32 | return $this->render( |
||
| 33 | 'security/login.html.twig', |
||
| 34 | [ |
||
| 35 | 'last_username' => $lastUsername, |
||
| 36 | 'error' => $error, |
||
| 37 | 'GOOGLE_RECAPTCHA_SITE_KEY' |
||
| 38 | ] |
||
| 52 |