Hi,

I created my own authentication backend which gets users from another
table (webforum). I used
http://www.djangoproject.com/documentation/authentication/#writing-an-authentication-backend
as a starting point and the final backend looks like this:
http://rafb.net/paste/results/gaXtif32.html

Now when I import authenticate from django.contrib.auth and type
authenticate(username='AUserWhoSitsInTheWebforumDB',password='HisCorrectPassword'),
I get an User object. I set is_staff=True, too. Yet, when that user
tries to login to the administration-area, he just gets redirected to
the login form. No error message. When I overwrite his password with a
"native" Django one, it works.

What did I miss? authenticate(...) works. I added my backend to
settings.py, too.

Greetings,

Florian


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to