Skip to content

Commit d68b18c

Browse files
committed
Fix return type of change password action
1 parent b0c6921 commit d68b18c

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)