auto-generate USERNAME using firstname_lastname

Discussion in 'Customization & add-ons' started by neutron, Feb 11, 2009.

  1. neutron

    neutron New Member

    Joined:
    Jul 29, 2008
    Messages:
    16
    I would like amember to auto-generate the USERNAME (not password) using firstname_lastname. How can I make this modification?

    I'll welcome quotes to help me make this customization.
  2. neutron

    neutron New Member

    Joined:
    Jul 29, 2008
    Messages:
    16
    Tech support told me usernames are already auto-generated with firstname_lastname, but i was having the problem that SOME usernames were being generated with the first part of the email address. amember does either. I just commented out the code that used the email address to generate the login and now all usernames are from firstname_lastname.
  3. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    neutron,

    Would you mind sharing the modification that you made?
  4. neutron

    neutron New Member

    Joined:
    Jul 29, 2008
    Messages:
    16
    In common.inc.php for the
    Code:
    function generate_login($vars='')
    on line 1421 in my version I just commented out the "try to use first part of email" section.

    That left the "from first and last name" as the sole method, whereas before both were active and the "try to use first part of email" was first.

Share This Page