I have a django project in which I am using Django-rest-auth to do authentication. I want to use email with password to authenticate the user and n
I'm using this package too, and by call this config it worked for me:
ACCOUNT_AUTHENTICATION_METHOD = 'email'
Be careful about this config, this config belongs to django-allauth, see this:
class AuthenticationMethod:
USERNAME = 'username'
EMAIL = 'email'
USERNAME_EMAIL = 'username_email'
The above class is the settings which is in allauth, so you should write 'EMAIL' in lower case.