title: How to make some security checks before the user will be granted to log-in (pre-login)?
body: <p>According to this "Old" article <a href="https://stackoverflow.com/questions/8406001/is-there-any-sort-of-pre-login-event-or-similar">Is there any sort of &quot;pre login&quot; event or similar?</a> I can extend UsernamePasswordFormAuthenticationListener to add some code pre-login. </p>
  
  <p>In symfony3 seems that there's no <code>security.authentication.listener.form.class</code> parameter, so how can I reach the same result without changing symfony <code>security_listener.xml</code> config file?</p>