5

I see django-allauth supports forcing users to login using their email address, and doesn't ask them for a username when signing up (instead generating one automatically from the email address) - https://stackoverflow.com/a/19683532/221001

Is it possible to have a user sign up, entering an email address and username manually, and then allow them to sign in using either? (e.g. there are two fields on the Login page: "username or email" and "password")

Community
  • 1
  • 1
ventolin
  • 2,971
  • 3
  • 21
  • 25

1 Answers1

13

As Yogesh posted above, the username_email value for ACCOUNT_AUTHENTICATION_METHOD does the job.

http://django-allauth.readthedocs.org/en/latest/configuration.html

ventolin
  • 2,971
  • 3
  • 21
  • 25
  • Why has this answer been downvoted? This is the correct answer and provides a link to the docs. Thanks :) – Isaac Sep 02 '15 at 18:20