@alex80332 Yes, your situation is a little bit a different one, but at all needs the same BYPASS-functionality/technique.
So you can take the example and reduce your login to the minimum requirement → JUST to use a PASSWORD for login.
No matter if you want to go the one or the other way, you will need to create a Bypass-Function.
Because in real (in the background), you still will need the email to login (as i know). If there is a better way → you can correct my suggestion.