Skip to content
Snippets Groups Projects
Verified Commit 0ed3f683 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Allow login with email or username

parent a14e0acb
No related branches found
No related tags found
No related merge requests found
...@@ -264,7 +264,7 @@ AUTHENTICATION_BACKENDS = ( ...@@ -264,7 +264,7 @@ AUTHENTICATION_BACKENDS = (
) )
# Some really nice defaults # Some really nice defaults
ACCOUNT_AUTHENTICATION_METHOD = 'username' ACCOUNT_AUTHENTICATION_METHOD = 'username_email'
ACCOUNT_EMAIL_REQUIRED = True ACCOUNT_EMAIL_REQUIRED = True
ACCOUNT_EMAIL_VERIFICATION = 'mandatory' ACCOUNT_EMAIL_VERIFICATION = 'mandatory'
......
...@@ -12,13 +12,13 @@ ...@@ -12,13 +12,13 @@
</ul> </ul>
</div> </div>
<div class="field"> <div class="field">
<label>Username</label> <label>Username or email</label>
<input <input
ref="username" ref="username"
required required
type="text" type="text"
autofocus autofocus
placeholder="Enter your username" placeholder="Enter your username or email"
v-model="credentials.username" v-model="credentials.username"
> >
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment