title: FOSUserBundle + login_check
body: <p>I have followed the manual and created MyBundle which extends FOSUserBundle,</p>
  
  <p>Everything works ok so far, I can </p>
  
  <p>1)register a user 
  2)send him email
  3)confirmed his account (after confirmation I am logged in)
  4)logout</p>
  
  <p>but afterwords I <strong><em>cannot login</em></strong>. 
  The user is enabled in the database.</p>
  
  <p>A query is fired but the login form error is "Bad credentials...".</p>
  
  <p>I am using , in security.yml</p>
  
  <p><code>
      encoders:
          'FOS\UserBundle\Model\UserInterface': sha512
  </code></p>
  
  <p>so my password field inside the database uses both sha512 encryption + salt.</p>
  
  <p>Should I change my extended user in any way to use 512 encoder and salt when comparing the db password and the one the user provided?</p>
  
  <p>If this is the problem ,
  does anyone know in which class and how to implement the above because this </p>
  
  <p><a href="http://symfony.com/doc/current/book/security.html#encoding-the-user-s-password" rel="nofollow">http://symfony.com/doc/current/book/security.html#encoding-the-user-s-password</a></p>
  
  <p>does not help me right now.</p>
  
  <p>Or can anyone guide me on how to debug this?</p>
  
  <p>Lastly I really stuck on this...</p>