From 7b8599992c2d20b695bf7364880132d72a37e0cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Rubio?= Date: Sat, 17 Jun 2017 18:17:20 +0200 Subject: [PATCH] Fix variable name in CSFR token example code --- security/guard_authentication.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/guard_authentication.rst b/security/guard_authentication.rst index 922fb0128bc..52f8d644a87 100644 --- a/security/guard_authentication.rst +++ b/security/guard_authentication.rst @@ -502,7 +502,7 @@ and add the following logic:: public function getCredentials(Request $request) { - $token = $request->request->get('_csrf_token'); + $csrfToken = $request->request->get('_csrf_token'); if (false === $this->csrfTokenManager->isTokenValid(new CsrfToken('authenticate', $csrfToken))) { throw new InvalidCsrfTokenException('Invalid CSRF token.');