I have a working site where users are logging into using their email/username and password. Every user has a usermeta field with an unique code.
I have to modify the login page in order to let them log into the app using this code. The login form should have just a "Code" field.
The site is also serving as an API. I'm using WP-REST API and JWT Authentication for WP-API for authentication.
I have to modify the authentication process for the website login form and the api endpoint.
Is there some way to achieve that?