Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7eb0bb2

Browse filesBrowse files
committed
minor #8056 Fix variable name in CSFR token example code (rubenrubiob)
This PR was merged into the 3.3 branch. Discussion ---------- Fix variable name in CSFR token example code Commits ------- 7b85999 Fix variable name in CSFR token example code
2 parents c3b1795 + 7b85999 commit 7eb0bb2
Copy full SHA for 7eb0bb2

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎security/guard_authentication.rst

Copy file name to clipboardExpand all lines: security/guard_authentication.rst
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.