website/docs: fix invalid queries in docs

closes #2482
This commit is contained in:
Jens Langhammer 2022-03-14 12:34:48 +00:00
parent c7a825c393
commit 47601a767b
1 changed files with 2 additions and 2 deletions

View File

@ -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.