From eb8f52b870778894e020e50486aff8f7024efdf9 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 30 Apr 2021 10:15:27 +0200 Subject: [PATCH] stages/identification: fix tests Signed-off-by: Jens Langhammer --- authentik/stages/identification/stage.py | 2 +- authentik/stages/identification/tests.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/authentik/stages/identification/stage.py b/authentik/stages/identification/stage.py index d483eac79..f5b3bfc90 100644 --- a/authentik/stages/identification/stage.py +++ b/authentik/stages/identification/stage.py @@ -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) diff --git a/authentik/stages/identification/tests.py b/authentik/stages/identification/tests.py index 525f3250a..1c8fe74ac 100644 --- a/authentik/stages/identification/tests.py +++ b/authentik/stages/identification/tests.py @@ -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"},