Re: request.user returning AnonymousUser

2013-07-22 Thread l33t
Hello, The problem is fixed. I was not using the get_user method in the custom authentication backend properly. Best Regards, Goose. On Friday, July 19, 2013 1:04:22 PM UTC+2, l33t wrote: > > > Hello, > > I have a custom authentication backend and a custom user model. The > authentication()

request.user returning AnonymousUser

2013-07-19 Thread l33t
Hello, I have a custom authentication backend and a custom user model. The authentication() method in the custom authentication backend returns the custom user after successful authentication. Once authenticated, I use login from django.contrib.auth to set the sessionid for the custom user.