Skip to content

Commit 7b85999

Browse files
authored
Fix variable name in CSFR token example code
1 parent c3b1795 commit 7b85999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/guard_authentication.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ and add the following logic::
502502

503503
public function getCredentials(Request $request)
504504
{
505-
$token = $request->request->get('_csrf_token');
505+
$csrfToken = $request->request->get('_csrf_token');
506506
507507
if (false === $this->csrfTokenManager->isTokenValid(new CsrfToken('authenticate', $csrfToken))) {
508508
throw new InvalidCsrfTokenException('Invalid CSRF token.');

0 commit comments

Comments
 (0)