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

Prevent empty username fields from being added to requests #590

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

edvardsr
Copy link
Contributor

Current behavior of CanonicalizeUsername and checks related to config('fortify.lowercase_usernames') lead to empty fields being added to requests in some cases.

For example, if the request in the call to src/Http/Controllers/ProfileInformationController.php did not have whatever is set as Fortify::username() defined, an empty definition for Fortify::username() would be added to the request, potentially leading to issues during validation. This has happened to me and is the reason why I am making this pull request.

@taylorotwell taylorotwell merged commit fe9ddfc into laravel:1.x Jan 24, 2025
10 checks passed
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