remove Base64Str type from altcha

This was decoding the string, which the altcha validator expects to do itself. Now it works.
This commit is contained in:
Jack Case
2025-11-09 18:51:22 +00:00
parent 49377f2e20
commit f24f3ceee4
3 changed files with 13 additions and 11 deletions

View File

@@ -8,7 +8,7 @@ from altcha import Payload as AltchaPayload, verify_solution
from urllib.parse import urlparse, ParseResult
from slopserver.server import settings
from slopserver.settings import settings
NAMING_CONVENTION = {
"ix": "ix_%(column_0_label)s",
@@ -85,4 +85,4 @@ class SlopReport(BaseModel):
class SignupForm(BaseModel):
email: EmailStr
password: SecretStr
altcha: Annotated[Base64Str, AfterValidator(altcha_validator)]
altcha: Annotated[str, AfterValidator(altcha_validator)]