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.
2 parents 52ec294 + 4e9c821 commit 09489b5Copy full SHA for 09489b5
Controller/SecurityController.php
@@ -54,7 +54,9 @@ public function loginAction(Request $request)
54
// last username entered by the user
55
$lastUsername = (null === $session) ? '' : $session->get($lastUsernameKey);
56
57
- $csrfToken = $this->get('security.csrf.token_manager')->getToken('authenticate')->getValue();
+ $csrfToken = $this->has('security.csrf.token_manager')
58
+ ? $this->get('security.csrf.token_manager')->getToken('authenticate')->getValue()
59
+ : null;
60
61
return $this->renderLogin(array(
62
'last_username' => $lastUsername,
0 commit comments