Robert Šmol napisał(a):
> I have HomePage with login bar with a form for user to log in. I use
> django.contrib.auth.login to log user in. When I enter it from the
> /accounts/login/ page it works ok. However trying to login from homepage
> is not working. I have to do it twice (always). On django# there were
> more users with same experience. They recommended to write own login
> view. So I did and it works ok.
>
> After digging into django.contrib.auth.view.login I found out the code
> fails at checking errors
>
> errors = manipulator.get_validation_errors(request.POST)
>
> with:
>
> {'username': ["Your Web browser doesn't appear to have cookies enabled.
> Cookies are required for logging in."]}
>
> and hence redirecting to /accounts/login/ (and setting up a test_cookie).
>
> I guess I'm supposed to setup a test cookie first right? But how? I
> didn't find any documentation for this :(
We got the same problems with admin site. Users using IE report that the
test cookie is lost ocassionally after long period of inactivity (say,
30-40 minutes) and they are logged out. After that, they are presented
with admin login form, but can not log in with the above message.
--
Jarek Zgoda
Skype: jzgoda | GTalk: [EMAIL PROTECTED] | voice: +48228430101
"We read Knuth so you don't have to." (Tim Peters)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---