The MU forums have moved to WordPress.org

Generate 'user_login' from 'display_name' (2 posts)

  1. modifiedcontent
    Member
    Posted 15 years ago #

    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.

  2. modifiedcontent
    Member
    Posted 15 years ago #

    Anyone?

About this Topic

  • Started 15 years ago by modifiedcontent
  • Latest reply from modifiedcontent