aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'okupy/common')
-rw-r--r--okupy/common/auth.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/okupy/common/auth.py b/okupy/common/auth.py
index 0747d12..d7a7f95 100644
--- a/okupy/common/auth.py
+++ b/okupy/common/auth.py
@@ -15,10 +15,7 @@ class SSLCertAuthBackend(ModelBackend):
It requires one of owner e-mails to match in LDAP.
"""
- def authenticate(self, request=None):
- if request is None:
- return None
-
+ def authenticate(self, request):
# it can be: SUCCESS, NONE and likely some string for failure ;)
cert_verify = request.META.get('SSL_CLIENT_VERIFY', None)
if cert_verify != 'SUCCESS':