stages/identification: fix tests
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
3ee90712b2
commit
eb8f52b870
|
@ -28,7 +28,7 @@ LOGGER = get_logger()
|
|||
class IdentificationChallenge(Challenge):
|
||||
"""Identification challenges with all UI elements"""
|
||||
|
||||
user_fields = ListField(CharField(), allow_empty=True, allow_null=True)
|
||||
user_fields = ListField(child=CharField(), allow_empty=True, allow_null=True)
|
||||
application_pre = CharField(required=False)
|
||||
|
||||
enroll_url = CharField(required=False)
|
||||
|
|
|
@ -106,7 +106,7 @@ class TestIdentificationStage(TestCase):
|
|||
"background": flow.background.url,
|
||||
"type": ChallengeTypes.NATIVE.value,
|
||||
"component": "ak-stage-identification",
|
||||
"input_type": "email",
|
||||
"user_fields": ["email"],
|
||||
"enroll_url": reverse(
|
||||
"authentik_core:if-flow",
|
||||
kwargs={"flow_slug": "unique-enrollment-string"},
|
||||
|
@ -149,7 +149,7 @@ class TestIdentificationStage(TestCase):
|
|||
"background": flow.background.url,
|
||||
"type": ChallengeTypes.NATIVE.value,
|
||||
"component": "ak-stage-identification",
|
||||
"input_type": "email",
|
||||
"user_fields": ["email"],
|
||||
"recovery_url": reverse(
|
||||
"authentik_core:if-flow",
|
||||
kwargs={"flow_slug": "unique-recovery-string"},
|
||||
|
|
Reference in New Issue