| Conditions | 3 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function loginAction(Request $request) |
||
| 26 | { |
||
| 27 | $csrfToken = null; |
||
| 28 | if (isset($this->application['csrf.token_manager']) && $this->application['csrf.token_manager'] instanceof CsrfTokenManagerInterface) { |
||
| 29 | $csrfToken = $this->application['csrf.token_manager']->getToken('authenticate'); |
||
| 30 | } |
||
| 31 | |||
| 32 | return $this->render('silex_user/auth/login.twig', [ |
||
| 33 | 'error' => $this->application['security.last_error']($request), |
||
| 34 | 'last_username' => $this->application['session']->get(Security::LAST_USERNAME), |
||
| 35 | 'csrf_token' => $csrfToken |
||
| 36 | ]); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |