vBulletin 3.8.5 / 4.0.3 - Login With Email Address

Discussion in 'Add Ons' started by Alan Wagstaff, May 11, 2010.

  1. Alan Wagstaff Supporting Members

    Likes Received:
    80
    Introduction

    This little mod allows your members to login using either their username or email address.

    Note: If you allow more than one member to have the same email address then don't use this mod as it won't be able to figure out which member is trying to login :)

    Installation

    Import the Product XML

    Attached Files:

    • Like Like x 1
    • Agree Agree x 1
    • Winning!!!! Winning!!!! x 1
  2. Caffeine Fix

    Big Dan Will Work For Coffee

    Likes Received:
    15
    Software You Use:
    vBulletin, myBB
    That' s pretty cool Alan! :) For some reason I've always preferred the IPB way of doing login (email or member name). This could save me some admin time. I get emails every so often from members who forgot their member name. Having the ability to use email login should prevent that.

    Just out of curiosity does anything crazy happen when a member uses their email address as a user name?
  3. Alan Wagstaff Supporting Members

    Likes Received:
    80
    It shouldn't be affected. Here is the process:

    - User logs in
    - If vBulletin returns the "Unknown username" error, then this mod kicks in
    - This mod checks to see if there is a user record who's email address matches the "username" that the user entered
    - If it finds a match, it fetches the username for that email address
    - It then calls the vBulletin login function using the username that it found
    - vBulletin then kicks in again and checks the username (that we've just looked up) and the password that the user entered.

    If the user originally used their email address as their username then the normal vBulletin login function would match it as their username and this mod would never get called :)
  4. Urgamingzone AdminExtra Fan!

    Likes Received:
    0
    Thanks mate, love it ;)
  5. geoscience Junior Member

    Likes Received:
    0
    thanks for this mod,
    I can't find this mod at vbulletin.org
    mark as installed :)
  6. Lee G Junior Member

    Likes Received:
    0
    Brilliant mod.
    Tried it with both 3.8.1 and 4.0.4.1
    Works a treat. Just need where to alter the "User Name" bit in the log in box to "User Name or Email"

    Top man for making this one
  7. Alan Wagstaff Supporting Members

    Likes Received:
    80
    Aye, I haven't released any of my mods over at vbulletin.org in many years :)

    No probs, happy to hear it's working ok :)
  8. Egghead

    Michael Well-Known Member

    Likes Received:
    81
    Never knew you released this, thank you Alan :giggle:
  9. Alan Wagstaff Supporting Members

    Likes Received:
    80
    Happy to help :)
  10. Barefooter

    Brandon Sheley Senior Member

    Likes Received:
    59
    Software You Use:
    vBulletin, XenForo
    nice mod Alan, may have to add this one
    This was one of the things I liked about IPB, good to see an option with vBulletin now :giggle:
  11. Alan Wagstaff Supporting Members

    Likes Received:
    80
    Same here, love to be able to login with my email address as that's constant across all the forums I visit, my user name tends to change from site to site so I usually have to look it up if I haven't logged in for a while :giggle:

    Much easier to just login with email address and it's a feature I wish all Forum software would include.
  12. Horny

    TheRevTastic I don't want to be George Michael

    Likes Received:
    76
    Software You Use:
    IPB, XenForo
    Good mod mate, will you be making this for IPB when the time comes, I also wish I could do this on every site, but that means i gotta change all of those emails first :giggle:.
  13. Alan Wagstaff Supporting Members

    Likes Received:
    80
    It's already a default IP.Board feature, that's where I "inspired" the idea from :giggle:
  14. Caffeine Fix

    Hyperion The Face Changer

    Likes Received:
    3
    Software You Use:
    XenForo
    Hi.

    I added this feature neat feature; thank you.

    Does anyone know how to change the text "User Name" beside the login form, which is within the navigation bar on the index page? I was thinking it may be as simple as looking in the Phrase Manager, but there doesn't seem to be one specifically for the particularly instance of the text "User Name" I have in mind. Also, I thought of looking in "navbar" but in all that code I didn't see a particular "vbphrase" I could replace with the desired text: "User name or email address."
  15. jrs1939 Junior Member

    Likes Received:
    0
    An excellent mod. Thanks.
  16. datok Junior Member

    Likes Received:
    0
    Thanks for sharing... Nice!
  17. Alan Wagstaff Supporting Members

    Likes Received:
    80
    Happy to help, glad you guys like it :)
  18. Cloud_9

    MsJacquiiC ThickMadamJacq

    Likes Received:
    38
    Software You Use:
    vBulletin, XenForo
    Wow! Great share Alan - Thanks so much.
    /me wonders where the install button is LOL
    Anyway - much appreciation :)

    Jacquii.
  19. RiKiN Junior Member

    Likes Received:
    0
    An excellent Mod! But is it possible just to make the users to use their emails to login and to disable them using their username, due to people bruteforcing usernames?

    Or maybe add a captcha to the login form. Would be great for vb4.
  20. Batty

    merk_sfi Senior Member

    Likes Received:
    91
    Hey there,
    I know this is an old thread but was wondering if anyone knew if this would work on vb4.1.x

Share This Page