| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | 6 | public function loginAction() |
|
| 29 | { |
||
| 30 | 6 | $authenticationUtils = $this->get('security.authentication_utils'); |
|
| 31 | 6 | $error = $authenticationUtils->getLastAuthenticationError(); |
|
| 32 | 6 | $lastUsername = $authenticationUtils->getLastUsername(); |
|
| 33 | |||
| 34 | return [ |
||
| 35 | 6 | 'last_username' => $lastUsername, //$lastUsername, |
|
| 36 | 6 | 'error' => $error, |
|
| 37 | ]; |
||
| 38 | } |
||
| 39 | } |
||
| 40 |