1👍
Django’s authenticate
method checks against a username
, not an email.
It takes credentials in the form of keyword arguments, for the default configuration this is username and password.
The simple solution to this is, when defining a user, set their username to the same as the email.
Source:stackexchange.com