| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 20 | public function loginAction() |
||
| 21 | { |
||
| 22 | $authenticationUtils = $this->get('security.authentication_utils'); |
||
| 23 | |||
| 24 | $error = $authenticationUtils->getLastAuthenticationError(); |
||
| 25 | |||
| 26 | $lastUsername = $authenticationUtils->getLastUsername(); |
||
| 27 | |||
| 28 | return [ |
||
| 29 | 'last_username' => $lastUsername, |
||
| 30 | 'error' => $error, |
||
| 31 | ]; |
||
| 32 | } |
||
| 33 | } |
||
| 34 |