summaryrefslogtreecommitdiff
path: root/main/sitelogin.py
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-04-09 22:42:56 -0700
committereliott <eliott@cactuswax.net>2008-04-09 22:42:56 -0700
commitca033e91bf5e6c22369447a0f1c7fdd4e497b736 (patch)
treed2f3ad88fbeb16c9c0539e27e9cc158684ca61f2 /main/sitelogin.py
parent015854b8866e76cc5c0c4e74db1b2aab4cfe18be (diff)
Added/changed full site login middleware.
Diffstat (limited to 'main/sitelogin.py')
-rw-r--r--main/sitelogin.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/main/sitelogin.py b/main/sitelogin.py
deleted file mode 100644
index 53721095..00000000
--- a/main/sitelogin.py
+++ /dev/null
@@ -1,15 +0,0 @@
-from django.contrib.auth.views import logout_then_login, login
-from django.conf import settings
-
-class SiteLogin:
- def __init__(self):
- self.login_path = settings.LOGIN_URL
- def process_request(self, request):
- if request.user.is_anonymous() and request.path != self.login_path:
- if request.POST:
- return login(request)
- else:
- return HttpResponseRedirect('%s?next=%s' % (self.login_path, request.path))
-
-# vim: set ts=4 sw=4 et:
-