From 1cfe81887b2250f7db9c351c1ed13db7d6a9c7d2 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 11 Nov 2021 23:33:37 +0100 Subject: [PATCH] stages/authenticator_validate: improve logging Signed-off-by: Jens Langhammer --- authentik/stages/authenticator_validate/stage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/authentik/stages/authenticator_validate/stage.py b/authentik/stages/authenticator_validate/stage.py index 0288fd6a4..6b65fd5a3 100644 --- a/authentik/stages/authenticator_validate/stage.py +++ b/authentik/stages/authenticator_validate/stage.py @@ -95,7 +95,8 @@ class AuthenticatorValidateStageView(ChallengeStageView): def get_device_challenges(self) -> list[dict]: """Get a list of all device challenges applicable for the current stage""" challenges = [] - user_devices = devices_for_user(self.get_pending_user()) + # Convert to a list to have usable log output instead of just + user_devices = list(devices_for_user(self.get_pending_user())) LOGGER.debug("Got devices for user", devices=user_devices) # static and totp are only shown once