How do I add an extra check to the default Symfony login_check? Most documentation is about how to customize the login form, but in this case I only want to add an extra check whether a user has the the status active.
I assume that I have to redirect the route pattern: /login_check to my own security check, but what should this function look like? It seems I can’t find any documentation on that.
You can either use built in AdvancedUserInterface (recommended) http://symfony.com/doc/current/cookbook/security/entity_provider.html#forbid-non-active-users or create custom Entity Provider http://symfony.com/doc/current/cookbook/security/entity_provider.html#authenticating-someone-with-a-custom-entity-provider