Skip to content

Commit 83dbfc9

Browse files
committed
bug #1473 Fix return type of change password action (HeahDude)
This PR was merged into the main branch. Discussion ---------- Fix return type of change password action Commits ------- d68b18c Fix return type of change password action
2 parents b0c6921 + d68b18c commit 83dbfc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/UserController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function changePassword(
7272

7373
// The logout method applies an automatic protection against CSRF attacks;
7474
// it's explicitly disabled here because the form already has a CSRF token validated.
75-
return $security->logout(validateCsrfToken: false);
75+
return $security->logout(validateCsrfToken: false) ?? $this->redirectToRoute('homepage');
7676
}
7777

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

0 commit comments

Comments
 (0)