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

🩹 Fix token authorization #113

Merged
merged 1 commit into from
Aug 3, 2024
Merged

Conversation

bonzai
Copy link
Contributor

@bonzai bonzai commented Aug 3, 2024

My previous PR (#112) doesn't handle the case when someone makes a request with the Content-Type: application/json header. The $request->input method will use the JSON data (payload) instead of the request data (parameters).

The easiest fix is to use the $request->get method from Symfony, as it can retrieve data from both the query string and request body parameters.

@Log1x Log1x merged commit 8915b11 into laracord:main Aug 3, 2024
1 check passed
@Log1x
Copy link
Member

Log1x commented Aug 3, 2024

Great! Appreciate it.

@bonzai bonzai deleted the fix-token-authorization branch August 3, 2024 03:42
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