Skip to content

Commit 38c9708

Browse files
committed
Minor tweak
1 parent 9ac2900 commit 38c9708

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Controller/UserController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ public function changePassword(
7070
if ($form->isSubmitted() && $form->isValid()) {
7171
$entityManager->flush();
7272

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);
73+
// The logout method applies an automatic protection against CSRF attacks;
74+
// it's explicitly disabled here because the form already has a CSRF token validated.
75+
return $security->logout(validateCsrfToken: false);
7676
}
7777

7878
return $this->render('user/change_password.html.twig', [

0 commit comments

Comments
 (0)