1 2 3 4 | class SetTestCookieMiddleware(object):
def process_request(self, request):
if not request.user.is_authenticated():
request.session.set_test_cookie()
|
More like this
- Login message middleware by nipuL 5 years, 1 month ago
- OracleAuthBackend by nosrednakram 3 years, 9 months ago
- HTTPS redirections middleware with updated URL template tag by xlq 7 months ago
- Auth decorators with 403 by Magus 5 years, 12 months ago
- Cookieless Session Middleware by juliocarlos 4 years, 5 months ago
Comments