Login with username?
  • karrottkarrott
    Posts: 3
    Does anyone know of an addon that allows you to login with a username instead of an email? I can't seem to find one for Vanilla 2. If not, what's the simplest way to accomplish this using PHP? I appreciate any help!
  • LincolnLincoln
    Posts: 2,016
    You actually can log in with your username by default. It just prompts for email to be compatible with the SSO plugin. I always auth as 'Lincoln' because I'm lazy. :)

    Vanilla developer [GitHub, Twitter]

  • karrottkarrott
    Posts: 3
    Oh, I see. So I can actually just change the HTML view to say 'Email/Username' instead of just 'Email'? The system will automatically detect the username and continue logging in?
  • LincolnLincoln
    Posts: 2,016
    Yup, as it stands now, that is correct.

    Vanilla developer [GitHub, Twitter]

  • karrottkarrott
    Posts: 3
    Ok, thank you very much for your help Lincoln.
  • ithcyithcy
    Posts: 1,290
    Whomever's interested, the view in question is applications/dashboard/views/entry/auth/password.php and the change needed is to line 13:
    echo $this->Form->Label('Email', 'Email');
    change to:
    echo $this->Form->Label('Username or Email', 'Email');
    There may be some other places that need to change as well, but I'm not sure.
  • anonymusanonymus
    Posts: 11
    Why didn't they just put that into the text in the first place? I've spent 3 months logging in with a tedious email for NOTHING
  • StevenSteven
    Posts: 3
    anonymus said:

    Why didn't they just put that into the text in the first place? I've spent 3 months logging in with a tedious email for NOTHING

    Your e-mail shouldn't be "tedious" to input. How do you think other people feel when they try to send you an e-mail?!
  • ToddTodd
    Posts: 1,436
    @Steven, lolz!

    Vanilla co-founder

  • anonymusanonymus
    Posts: 11
    Steven said:

    anonymus said:

    Why didn't they just put that into the text in the first place? I've spent 3 months logging in with a tedious email for NOTHING

    Your e-mail shouldn't be "tedious" to input. How do you think other people feel when they try to send you an e-mail?!
    username - 5 characters
    email - 15 characters

    It's more tedious than a username. Nuff said?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Who's Online 4

AltazarIdantikijjxvik