The Symfony 2 documentation shows how to create an entity-based form and validate it in the controller upon submission to ensure that certain fields have been filled out on the server side.
However, looking at the documentation for authentication, it uses a completely different approach for creating and processing the form, where you simply define the route for check_login without declaring the controller, since it is taken for a security suite.
Since login / authentication verification is now associated with a security suite, you have no way to implement any verification in the controller, as the form verification documentation shows.
Without the required HTML5 tag, you can spam the login form with empty entries.
How to add form confirmation for email and password fields based on Symfony authentication documentation here: http://symfony.com/doc/current/book/security.html#book-security-encoding-user-password
Also the error when sending the wrong credentials simply says "Invalid credentials", how do I configure this error?
thanks
source share