Symfony FOSUserBundle - Login - Invalid Credentials
<p>I am having issue with FosUserBundle,</p>

<p>Acctualy I followed this tutorial </p>

<p><a href="http://symfony.com/doc/current/bundles/FOSUserBundle/index.html" rel="nofollow">http://symfony.com/doc/current/bundles/FOSUserBundle/index.html</a></p>

<p>And in the end it says You now can log in at "/app.com/app_dev.php/login!"</p>

<p>Here is <a href="http://i.stack.imgur.com/ArM34.jpg" rel="nofollow">photo</a></p>

<p><strong>My routing file:</strong></p>

<pre><code>   app:
    resource: "@AppBundle/Controller/"
    type:     annotation


# easy_admin_bundle:
    # resource: "@EasyAdminBundle/Controller/"
    # type:     annotation
    # prefix:   /admin

fos_user:
    resource: "@FOSUserBundle/Resources/config/routing/all.xml"
</code></pre>

<p><strong>My security file:</strong></p>

<pre><code>    security:
    encoders:
        FOS\UserBundle\Model\UserInterface: bcrypt

    role_hierarchy:
        ROLE_ADMIN:       ROLE_USER
        ROLE_SUPER_ADMIN: ROLE_ADMIN

    providers:
        fos_userbundle:
            id: fos_user.user_provider.username

    firewalls:
        main:
            pattern: ^/
            form_login:
                provider: fos_userbundle
                csrf_token_generator: security.csrf.token_manager
                # if you are using Symfony &lt; 2.8, use the following config instead:
                # csrf_provider: form.csrf_provider

            logout:       true
            anonymous:    true

    access_control:
        - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/admin/, role: ROLE_ADMIN }
</code></pre>