From 5854833240daac557552d0746f4cc25dd1437b35 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 14 Dec 2021 11:06:46 +0100 Subject: [PATCH] stages/authenticator_webauthn: fix migrations for different choices Signed-off-by: Jens Langhammer --- .../0005_authenticatewebauthnstage_user_verification.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/authentik/stages/authenticator_webauthn/migrations/0005_authenticatewebauthnstage_user_verification.py b/authentik/stages/authenticator_webauthn/migrations/0005_authenticatewebauthnstage_user_verification.py index 91dea868b..12c4b1815 100644 --- a/authentik/stages/authenticator_webauthn/migrations/0005_authenticatewebauthnstage_user_verification.py +++ b/authentik/stages/authenticator_webauthn/migrations/0005_authenticatewebauthnstage_user_verification.py @@ -15,11 +15,11 @@ class Migration(migrations.Migration): name="user_verification", field=models.TextField( choices=[ - ("UserVerificationRequirement.REQUIRED", "Required"), - ("UserVerificationRequirement.PREFERRED", "Preferred"), - ("UserVerificationRequirement.DISCOURAGED", "Discouraged"), + ("required", "Required"), + ("preferred", "Preferred"), + ("discouraged", "Discouraged"), ], - default="UserVerificationRequirement.PREFERRED", + default="preferred", ), ), ]