Oops i mean username, not password.

Im not clear on how I can get this to override the django login
functionality. Im reading more up on custom auth backends but Ill
admit it's a little confusing.

Anyone have a finished example of how I can get Django to use email to
login (either by making email the username field or some other
method), I learn best by example.

Cheers,
D

On Aug 2, 7:33 pm, Dana <woodman.d...@gmail.com> wrote:
> Tried using that but seems to not do what I need. I couldn't get an
> email address to save as a password and I am not willing to modify
> Django or hack my database to do it just yet.
>
> On Aug 2, 9:21 am, Darek <dariusz.ormi...@gmail.com> wrote:
>
> > tips&tricks: Email addresses for user 
> > name:http://www.djangosnippets.org/snippets/74/
>
> > On Aug 2, 5:38 pm,Dana<woodman.d...@gmail.com> wrote:
>
> > > Hello All,
>
> > > I am looking to create a user model that extends the Auth "User"
> > > model, like how James Bennett outlines in his article "Extending the
> > > User Model" [1] by creating a FK to the "User" model and everything is
> > > going fine other than one issue.
>
> > > I would like to make "email" become the unique field and not need
> > > "username" when creating user accounts. Now, I don't mind using
> > > username for the Django admin, but for my own user section on the
> > > front end I want people creating accounts/logging in using an email. I
> > > am wondering if there is any clear way of doing this without having to
> > > roll my own auth app?
>
> > > I played with the idea of having my "save()" function create a random
> > > username when saving but that is obviously an ugly solution. Is there
> > > an easier way to do this that I am overlooking?
>
> > > Thanks for all your time!
> > >DanaW
>
> > > [1]http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-m...
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to