Amember generate username, password?

Discussion in 'aMember Pro v.4' started by crogue, Dec 26, 2011.

  1. crogue

    crogue New Member

    Joined:
    Dec 17, 2011
    Messages:
    13
    I noticed that the code is present in User.php to have amember generate the username (based off of the customer's email) as well as a password. But I can't find a option to enable this in the Admin panel. There isn't anything on this in the wiki.
  2. crogue

    crogue New Member

    Joined:
    Dec 17, 2011
    Messages:
    13
    I just saw this in amember/library/Am/Form/Setup/Standard.php
    PHP:
    //         $this->addElement('advcheckbox', 'generate_login')
    //             ->setLabel(___('Generate Login', 'should aMember generate username for customer?'));

    //         $fs->addElement('advcheckbox', 'generate_pass')
    //             ->setLabel(___('Generate Password', 'should aMember generate password for customer?'));
    //
    Sooo... if I uncomment those lines will it work? I don't want to muck things up if these lines were taken out because something will break down the road.
    olipayne likes this.
  3. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    To enable this, just remove login brick from signup form, login will be generated automatically in this case.
  4. crogue

    crogue New Member

    Joined:
    Dec 17, 2011
    Messages:
    13
    I'm not sure what you mean. Is that something that's in the signup.phtml, or do you mean a different file? I'm not familiar with what you mean by a 'brick'
  5. trafficbrowser

    trafficbrowser Member

    Joined:
    Oct 30, 2011
    Messages:
    46
    Membership Admin Page->Configuration->Setup/Configuration

    On the form editors page, edit the signup template.

    Once it loads do the following.

    Drag the following bricks to the right.

    1. Username
    2. Password

    On the page it tells you what the bricks are...

Share This Page