Re: Making login work with every page.

2008-04-07 Thread Thomas Guettler
shabda schrieb: > If a user is not logged in, then on each page, I have a login form. > This form posts to /accounts/login/ which does calls > contrib.auth.views.login. This view only logs in a user if the > session.test_cookie_worked(). > > So this means that from each page I need to call, > if n

Making login work with every page.

2008-04-06 Thread shabda
If a user is not logged in, then on each page, I have a login form. This form posts to /accounts/login/ which does calls contrib.auth.views.login. This view only logs in a user if the session.test_cookie_worked(). So this means that from each page I need to call, if not request.user.is_authentica