Okay so I looked at that Identifiers page and I think I need to use that userModel option towards the end, but I have no idea where to put it. My table that I’m using is called Accounts.
The main thing I’m confused about is that when I have the form that submits the login details, how does the authentication middleware know that this specific form submission contains login details, and how does it know which field to match it up with in the database, and why don’t I need to pass the form data to some authentication function? I’m confused because I can’t visualise the flow of data.