title: how to override login of flask-security?
body: <p>I want to do some customization when a user login. The problem is that the project is using flask-security which is implicitly handles user login.
  I want to check some records of users in the database when users login.</p>
  
  <p>how can i override "login" function in flask-security? </p>
  
  <p>I saw <a href="https://stackoverflow.com/questions/25114445/how-to-run-custom-code-at-login-with-flask-security">similar post</a>, tried but not working.
  Plus,  it is not exactly what I want to do. 
  I maybe need to stop the default behavior in case of some users.</p>
  
  <p>So, anyone having this kind of issue? how can I do it?</p>
  
  <p>Thanks!</p>