> Unless you imported Auth into the local namespace you need to call
> auth.authenticate().


Thanks for the humor!!  :)

>>> from django.contrib.auth import authenticate, login
>>> test = authenticate(username="testuser", password="testpass")
>>> test
<User: testuser>


If that were the case it would more than likely through an import
error which it is not. I use this same bit of code to login the use
when they complete registration. Its when the user goes to login it
does not return a user object to complete the login request.


On Apr 17, 4:51 pm, jonknee <[EMAIL PROTECTED]> wrote:
> > I can't get a user object to return from authenticate. any
> > suggestions?
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to