From 7d84a71a0101b40fe373362c4d813a4912309d68 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 7 Jun 2022 09:52:10 +0200 Subject: [PATCH] stages/authenticator_validate: fix double-negation of password-less check Signed-off-by: Jens Langhammer --- authentik/stages/authenticator_validate/stage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/stages/authenticator_validate/stage.py b/authentik/stages/authenticator_validate/stage.py index 62e39fafc..069e8db83 100644 --- a/authentik/stages/authenticator_validate/stage.py +++ b/authentik/stages/authenticator_validate/stage.py @@ -374,7 +374,7 @@ class AuthenticatorValidateStageView(ChallengeStageView): # All validation is done by the serializer user = self.executor.plan.context.get(PLAN_CONTEXT_PENDING_USER) if not user: - if not "webauthn" not in response.data: + if "webauthn" not in response.data: return self.executor.stage_invalid() webauthn_device: WebAuthnDevice = response.device self.logger.debug("Set user from user-less flow", user=webauthn_device.user)