Email as your username

Discussion in 'aMember Pro v.4' started by wallpaper_01, Sep 28, 2011.

  1. wallpaper_01

    wallpaper_01 Member

    Joined:
    Mar 9, 2011
    Messages:
    116
    Is it going to be possible to have the username as your email address? So then everyone will be unique? Is there an option for this?

    Thanks

    Dan
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    It is by default.
    Username will be present in database, but it may be generated and user may never know it.
    For login it is possible to use e-mail address. From scratch, with zero configuration.

    Of course, it requires e-mails to be unique.
  3. xindexer

    xindexer Member

    Joined:
    Apr 17, 2011
    Messages:
    52
    I'm using 4.1.14, all of my usernames that I imported from 3.2.4 are email addresses. Everything imported just fine but if I try to change anything on the admin-users? page - I get an error:

    Username contains invalid characters - please use digits and letters

    I have commented out two lines in the "AdminUsersController.php" file (lines 22/23)

    if(!preg_match(Am_Di:: ...
    return ___("Username ...

    This works but I hate hacking into the code. Any chance of getting @ added to your preg_match?

Share This Page