We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff3f85b commit 2643342Copy full SHA for 2643342
Controller/SecurityController.php
@@ -40,7 +40,7 @@ public function loginAction()
40
// last username entered by the user
41
$lastUsername = (null === $session) ? '' : $session->get(SecurityContext::LAST_USERNAME);
42
43
- $csrfToken = $this->container->get('form.csrf_provider')->generateCsrfToken('authenticate');
+ $csrfToken = $this->container->has('form.csrf_provider') ? $this->container->get('form.csrf_provider')->generateCsrfToken('authenticate') : null;
44
45
return $this->renderLogin(array(
46
'last_username' => $lastUsername,
0 commit comments