title: FOSUserBundle + verify user related properties after valid login
body: <p>I have implemented the FOSUserbundle on my application, I have manage to get chained userproviders to work as well as overriding some of the default controllers. </p>
  
  <p>I have one issue though, I need to find a way to intercept the login process.</p>
  
  <p>My userobject is linked to a client entity, Now I need to deny access to the Userobject even though it's valid because the client entity is disabled. </p>
  
  <p>What I have attempted.</p>
  
  <p>1)I tried extending the SecurityController to no avail, it seems to redirect before executing my code.</p>
  
  <p>2) I tried to set _target_path on my login form to a controller that does the check of the client entity status, This seems to work but after I logout the user using,</p>
  
  <pre><code>$this-&gt;get('request')-&gt;getSession()-&gt;invalidate() ;
  </code></pre>
  
  <p>The user is redirected back to the login page but I cannot get a flash message to appear on twig template stating that the client is not active.</p>
  
  <p>Any help or ideas will be much appreciated. </p>