I am going to enhance my WordPress authentication page. My idea is simply, is just change the process to check password, like the default process login with username or email.
I've change the database adding the extra field "code":
My objective is: the user can login with your username or email and with your password or code.
However, I don't know which part of coding is used to verify the password as I want to refer to the existing coding.