From 47601a767be5ffad51fac5eec43db15fb8d59233 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 14 Mar 2022 12:34:48 +0000 Subject: [PATCH] website/docs: fix invalid queries in docs closes #2482 --- website/docs/flow/stages/password/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/flow/stages/password/index.md b/website/docs/flow/stages/password/index.md index ca411159d..2d3906e23 100644 --- a/website/docs/flow/stages/password/index.md +++ b/website/docs/flow/stages/password/index.md @@ -14,14 +14,14 @@ Depending on what kind of device you want to require the user to have: ```python from authentik.stages.authenticator_webauthn.models import WebAuthnDevice -return WebAuthnDevice.objects.filter(user=request.user, active=True).exists() +return WebAuthnDevice.objects.filter(user=request.user, confirmed=True).exists() ``` #### Duo ```python from authentik.stages.authenticator_duo.models import DuoDevice -return DuoDevice.objects.filter(user=request.user, active=True).exists() +return DuoDevice.objects.filter(user=request.user, confirmed=True).exists() ``` Afterwards, bind the policy you've created to the stage binding of the password stage.