How can I generate 'user_login' from the member's real name?
My MU/Buddypress installation does something similar with a 'user_nicename' generated from the 'user_login'. It uses a sanitize function. I have trouble figuring out how it is added to the database.
Where are these queries? Where is the code that does it for 'user_nicename'?
I am aware basing login on real name wouldn't be safe. I'm also trying to figure out how to let the script log in with the 'user_email' instead of 'user_login'.
The goal is to eliminate having to ask new members to come up with silly "usernames". Email + real name should be enough.