I opted to customize a little.
First the backend:
from django.contrib.auth.backends import ModelBackend
from django.contrib.auth.models import User
class EmailBackend(ModelBackend):
"""A django.contrib.auth backend that authenticates the user based on its
email address instead of the username.
This should cover it:
https://github.com/dabapps/django-email-as-username
For compatibility with django-registration you'll also want to take a look
at the thread on this ticket:
https://github.com/dabapps/django-email-as-username/issues/17
Cheers,
Tom
On Tuesday, 25 September 2012
Hi,
For login with email or username in Django visit
http://www.f2finterview.com/web/Django/18/ it will give you direction
On Tue, Sep 25, 2012 at 7:27 AM, Bill Beal wrote:
> Hi all,
>
> I want to use the email address as the username for registration and
> login. I'm
On Tue, Sep 25, 2012 at 9:57 AM, Bill Beal wrote:
> Hi all,
>
> I want to use the email address as the username for registration and login.
> I'm using django-registration for 2-stage registration. I'm looking for an
> easier way than what I've come up with so far. I can
You could check out django-userena
On Mon, Sep 24, 2012 at 9:57 PM, Bill Beal wrote:
> Hi all,
>
> I want to use the email address as the username for registration and
> login. I'm using django-registration for 2-stage registration. I'm
> looking for an easier way than
Hi all,
I want to use the email address as the username for registration and login.
I'm using django-registration for 2-stage registration. I'm looking for
an easier way than what I've come up with so far. I can modify
registration and activation, but then django.contrib.auth.views.login
6 matches
Mail list logo