| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function loginAction(Request $request) |
||
|
|
|||
| 16 | { |
||
| 17 | $authenticationUtils = $this->get('security.authentication_utils'); |
||
| 18 | |||
| 19 | // get the login error if there is one |
||
| 20 | $error = $authenticationUtils->getLastAuthenticationError(); |
||
| 21 | |||
| 22 | // last username entered by the user |
||
| 23 | $lastUsername = $authenticationUtils->getLastUsername(); |
||
| 24 | |||
| 25 | return $this->render( |
||
| 26 | 'security/login.html.twig', |
||
| 27 | array( |
||
| 28 | // last username entered by the user |
||
| 29 | 'last_username' => $lastUsername, |
||
| 30 | 'error' => $error, |
||
| 31 | ) |
||
| 32 | ); |
||
| 33 | } |
||
| 34 | |||
| 43 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.