demo icon indicating copy to clipboard operation
demo copied to clipboard

Use logout_path() helper + add CSRF protection to logout

Open lxregistry opened this issue 3 years ago • 2 comments

after these changes Use logout_path() helper + add CSRF protection to logout

change password is not working , Invalid CSRF token.

in UserController return $this->redirectToRoute('security_logout');

lxregistry avatar Feb 08 '22 12:02 lxregistry

I suppose we need to leverage LogoutUrlGenerator::getLogoutPath() in that spot too, which should fix the problem. Could you try this and probably create a PR?

bocharsky-bw avatar Feb 08 '22 13:02 bocharsky-bw

@lxregistry Do you still have the problem?

alexis78-sym avatar Sep 11 '22 16:09 alexis78-sym