symfony / symfony-docs

The Symfony documentation
https://symfony.com/doc
Other
2.15k stars 5.1k forks source link

Update security.rst #20042

Closed JammyClarkie closed 1 month ago

JammyClarkie commented 1 month ago

If this form is submitted with an empty username or password, a 400 error will be thrown in a new page: The key "_password" must be a non-empty string. By adding "required" the user will instead get a more helpful "Please fill in this field." error on screen next to the appropriate box which is a much better experience.

OskarStark commented 1 month ago

Thanks for fixing this bug Jonathan and congrats on your first contribution to the Symfony documentation 🎉