Allow email or username on login

Discussion in 'Customization & add-ons' started by jenolan, Oct 7, 2009.

  1. jenolan

    jenolan aMember Coder

    Joined:
    Nov 3, 2006
    Messages:
    493
    New tutorial over at JLogica to allow users to login with either their username or email in login.php.

  2. jenolan

    jenolan aMember Coder

    Joined:
    Nov 3, 2006
    Messages:
    493
    Updated URL
  3. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Thanks. Like the DOX interface.

    What, from your experience, are any downsides to using the email as login? Have you run into any issues with 3rd party apps, etc?
  4. jenolan

    jenolan aMember Coder

    Joined:
    Nov 3, 2006
    Messages:
    493
    Just updated the link to the new system.

    Sorry about missing answering Skippy, the hack doesn't impact anything it simply looks for either in the db rather than just the name.

    Regards,
    Larry
  5. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,435
    Cool hack Larry!
    Will try it out.

    David
  6. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,435
    Larry, the link is no longer working.

    Have you updated this for 4.x?

    David
  7. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    David I seem to remember receiving an email from Jlogica that Larry had stopped his aMember work.
  8. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    Found this in another thread:

  9. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,435
    Thought he came back....

    Anyway- its not needed in 4.x, default it to allow email or username.

    David
  10. playpianoking

    playpianoking Member

    Joined:
    Dec 7, 2011
    Messages:
    67
    I'm in version 4.2.1.1 and I'm trying to manually add some members and it is not excepting Email addresses as usernames: "Username contains invalid characters - please use digits and letters"

    EDIT: I see, you can just make up any username, but when they login it will accept their Email.

Share This Page