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!
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. :)
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?
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.
Comments
Vanilla developer [GitHub, Twitter]
Vanilla developer [GitHub, Twitter]
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.
Vanilla co-founder
email - 15 characters
It's more tedious than a username. Nuff said?