We have currently have a login process that uses a front page to handle the login process then redirects the user back to the Front page and logs the user in.
Part of the reason for this process is that there have been several different platforms that have been migrated into the single wordpress that we are about to roll out. The issue is there are several different ways that users can log in including the email address, a username that existed in a legacy system, an id that orginated in yet another system, and our current unique numeric id.
It is currently possible to login through the 3rd party platform with all 4 different methods. Our business has directed us to keep this functionality.
My idea is to catch the submit in the log in process, call a rest service and pass them the id that was submitted, then that service will return the standardized id, then use the wordpress login function to log in using the username returned from the service, and the password entered in the Login Form.
Is there any reason I cannot or should not implement this process for our new site? If so is there a better to handle this scenario?