Allow login with email or username

This commit is contained in:
Eliot Berriot 2018-02-24 14:27:50 +01:00
parent a14e0acbe9
commit 0ed3f68305
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
2 changed files with 3 additions and 3 deletions

View file

@ -264,7 +264,7 @@ AUTHENTICATION_BACKENDS = (
)
# Some really nice defaults
ACCOUNT_AUTHENTICATION_METHOD = 'username'
ACCOUNT_AUTHENTICATION_METHOD = 'username_email'
ACCOUNT_EMAIL_REQUIRED = True
ACCOUNT_EMAIL_VERIFICATION = 'mandatory'