Re: Using email instead of username for registration and login

2012-09-26 Thread Germán
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.

Re: Using email instead of username for registration and login

2012-09-25 Thread Tom Christie
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

Re: Using email instead of username for registration and login

2012-09-24 Thread Stephen Anto
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

Re: Using email instead of username for registration and login

2012-09-24 Thread Russell Keith-Magee
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

Re: Using email instead of username for registration and login

2012-09-24 Thread Kurtis Mullins
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

Using email instead of username for registration and login

2012-09-24 Thread Bill Beal
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