The authentication model provided along with Django is based on username.
What to do to change the authentication based on email instead of username?
To be more specific:
With username authentication, to login user we do the following:
user = authenticate(name,password)
.......
login(request,user)
What to write for the above statements if we are authenticating using email?
For form:
I am planning to write my own form which shows the fields email, password and the validation. Is this the correct approach?