fixup! (backend) wip introduce a token exchange endpoint

This commit is contained in:
lebaudantoine
2026-08-14 17:40:51 +02:00
parent 4c6a8b2041
commit 597b2e7bc7
+1 -2
View File
@@ -609,8 +609,7 @@ class ExternalProcessEventSerializer(BaseValidationOnlySerializer):
class TransitCodeSerializer(BaseValidationOnlySerializer):
"""Validate the single-use transit code sent to the exchange endpoint."""
# todo if I can pass the max length directly to the char field
code = serializers.CharField(max_length=255, trim_whitespace=True)
code = serializers.CharField(trim_whitespace=True)
def validate_code(self, value):
"""Reject codes whose length cannot match a generated one.