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 9ac2900 commit 38c9708Copy full SHA for 38c9708
src/Controller/UserController.php
@@ -70,9 +70,9 @@ public function changePassword(
70
if ($form->isSubmitted() && $form->isValid()) {
71
$entityManager->flush();
72
73
- // The logout method has a protection against CSRF attacks, it's disabled here
74
- // because the form already has a CSRF token validated.
75
- return $security->logout(false);
+ // The logout method applies an automatic protection against CSRF attacks;
+ // it's explicitly disabled here because the form already has a CSRF token validated.
+ return $security->logout(validateCsrfToken: false);
76
}
77
78
return $this->render('user/change_password.html.twig', [
0 commit comments