title: Implementing Flask-Login with multiple User Classes
body: <p>I am writing an app that has multiple classes that function as Users (for example, a School Account and a Staff account). I'm trying to use Flask-Login to make this easy but I'm not quite sure how to make it, so that when a user logs in I can have my app check to see whether or not the username belongs to a School account or Staff account, and then log in appropriately. </p>
  
  <p>I know how to figure out which <em>type</em> of account it belongs to (since all usernames must be unique). But after that I'm not sure how to tell the app that I want it to login that specific user. </p>
  
  <p>Right now, I only have one universal login page. Is it easier if I make separate login pages for Staff accounts and School accounts? I'm using a MySQL database through Flask-SQLAlchemy. </p>