> Question is how to use email as user login name, and make user name
> not unique? What's the best way to do that?
>
To use e-mail as login, write your own backend (about four lines of
code). You'll be using the 'email' field, not username, because username
isn't long enough.
You can not make username not unique if you're using
contrib.auth.models.User, but you can populate it with whatever junk you
want because you won't be using it for anything else.
https://docs.djangoproject.com/en/1.3/topics/auth/#authentication-backends
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment