Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

antispam: Remove unused AltchaPayload model.

Alex Vandiver354e156a2e39
diff --git a/zerver/views/antispam.py b/zerver/views/antispam.py
index 89c4117f703..3e1df8db368 100644
--- a/zerver/views/antispam.py
+++ b/zerver/views/antispam.py
@@ -6,21 +6,12 @@ from django.conf import settings
from django.http import HttpRequest, HttpResponseBase
from django.utils.timezone import now as timezone_now
from django.utils.translation import gettext as _
-from pydantic import BaseModel
from zerver.lib.exceptions import JsonableError
from zerver.lib.response import json_success
from zerver.lib.typed_endpoint import typed_endpoint_without_parameters
-class AltchaPayload(BaseModel):
- algorithm: str
- challenge: str
- number: int
- salt: str
- signature: str
-
-
@typed_endpoint_without_parameters
def get_challenge(
request: HttpRequest,