Skip to content

Use logout_path() helper + add CSRF protection to logout #1314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lxregistry opened this issue Feb 8, 2022 · 2 comments · Fixed by #1364
Closed

Use logout_path() helper + add CSRF protection to logout #1314

lxregistry opened this issue Feb 8, 2022 · 2 comments · Fixed by #1364

Comments

@lxregistry
Copy link

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');

@bocharsky-bw
Copy link
Contributor

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?

@alexis78-sym
Copy link

@lxregistry Do you still have the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants