Reorganize honeypot settings

This commit is contained in:
2024-07-11 10:49:08 +02:00
parent d6b27f2f21
commit 0fb61938ce
3 changed files with 19 additions and 16 deletions

View File

@ -21,7 +21,6 @@ from django.contrib.auth import get_user
from django.contrib.auth.middleware import (
AuthenticationMiddleware as DjangoAuthenticationMiddleware,
)
from django.http import HttpResponse
from django.utils.functional import SimpleLazyObject
module, klass = settings.AUTH_ANONYMOUS_MODEL.rsplit(".", 1)
@ -71,7 +70,3 @@ class SignalRequestMiddleware:
def __call__(self, request):
_threadlocal.request = request
return self.get_response(request)
def custom_honeypot_error(request, context):
return HttpResponse("Upon reading this, the http client was enlightened.")