We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0c6921 commit d68b18cCopy full SHA for d68b18c
src/Controller/UserController.php
@@ -72,7 +72,7 @@ public function changePassword(
72
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);
+ return $security->logout(validateCsrfToken: false) ?? $this->redirectToRoute('homepage');
76
}
77
78
return $this->render('user/change_password.html.twig', [
0 commit comments