fix: Enforce JSONRenderer on AltchaChallengeView to return Content-Type application/json expected by ALTCHA widget
This commit is contained in:
Binary file not shown.
@@ -26,8 +26,11 @@ from .serializers import (
|
||||
ShiftSerializer, EventTemplateSerializer
|
||||
)
|
||||
|
||||
from rest_framework.renderers import JSONRenderer
|
||||
|
||||
class AltchaChallengeView(views.APIView):
|
||||
permission_classes = [permissions.AllowAny]
|
||||
renderer_classes = [JSONRenderer]
|
||||
|
||||
def get(self, request):
|
||||
salt = secrets.token_hex(12)
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -11,7 +11,7 @@
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap" rel="stylesheet">
|
||||
<title>Schichtplaner — Veranstaltungsschichtpläne</title>
|
||||
<script type="module" crossorigin src="/assets/index-CDq5e_Kt.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-BzMPGQ3H.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-fTGRNVay.css">
|
||||
</head>
|
||||
<body class="bg-paper text-main font-sans antialiased min-h-screen">
|
||||
|
||||
@@ -165,7 +165,6 @@ export default function GuestSignupModal({ shift, onClose, onSubmit }) {
|
||||
<altcha-widget
|
||||
ref={captchaRef}
|
||||
challengeurl="/api/events/altcha-challenge/"
|
||||
test="true"
|
||||
auto="onload"
|
||||
hidefooter="true"
|
||||
style={{ width: '100%' }}
|
||||
|
||||
Reference in New Issue
Block a user