Tuesday, March 19, 2013

Authentication with Email

Hi,

I am fairly new to Django and have started building a website that will require users to create an account with a username, email address, and password. Users will log in with their email address and password, not username.

There has been a lot of discussion about this topic in the past, but I was wondering what the current best practice is for solving these problems:

1. User email address is required and unique

2. Must log in with email address and password

3. Add additional fields to models.user

4. Must not impact other built-in apps or third-party apps

One approach is to extend models.user by way of a one-to-one relationship, as described in the docs. But that does not solve #1 and #2.

Which approach do you recommend as a long-term solution?

Thanks!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate