Skip to content
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

Make CSRF tokens better named #1131

Merged
merged 5 commits into from
Sep 16, 2024
Merged

Make CSRF tokens better named #1131

merged 5 commits into from
Sep 16, 2024

Conversation

melroy89
Copy link
Member

@melroy89 melroy89 commented Sep 16, 2024

Won't solve the problem; but up & down vote names are much less confusing for me. "Vote" (== only down voting??) vs "favourite" didn't make sense to me, and only confused me more than necessary.

  • Renamed favourite -> up_vote
  • Renamed vote -> down_vote
  • Refactor $request->request to $request->getPayload() according to Symfony best-pratices

I also believe renaming the twig templates & controllers could be a next step...

@melroy89 melroy89 marked this pull request as ready for review September 16, 2024 10:15
@melroy89 melroy89 changed the title Make CSRF tokens uniquely named Make CSRF tokens better named Sep 16, 2024
@melroy89

This comment was marked as outdated.

@melroy89

This comment was marked as outdated.

@melroy89

This comment was marked as outdated.

@melroy89
Copy link
Member Author

Also today I was at another location with another IP address & session, which might caused conflicts with my current session at my home desktop PC.

This could be another source of the issue, what happens when you have multiple sessions across multiple IPs?

@melroy89
Copy link
Member Author

Nevermind, I flushed the wrong Redis DB. haha

@melroy89 melroy89 merged commit e6a8ebb into main Sep 16, 2024
7 checks passed
@melroy89 melroy89 deleted the improve_CSRF_token_names branch September 16, 2024 20:05
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 this pull request may close these issues.

2 participants