Last active
June 10, 2025 23:15
-
-
Save mrworf/27a8e688e9cb3b19b6db9a28f342ace0 to your computer and use it in GitHub Desktop.
Revisions
-
mrworf revised this gist
Jun 10, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,6 +4,6 @@ import authentik.stages.authenticator_webauthn.models as webauthn_models from authentik.core.models import User user = User.objects.get(username="akadmin") totp_models.TOTPDevice.objects.filter(user=user).delete() webauthn_models.WebAuthnDevice.objects.filter(user=user).delete() -
mrworf renamed this gist
Jun 10, 2025 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mrworf created this gist
Jun 10, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ # Run the following code via "ak shell" # import authentik.stages.authenticator_totp.models as totp_models import authentik.stages.authenticator_webauthn.models as webauthn_models from authentik.core.models import User user = User.objects.get(username="admin") totp_models.TOTPDevice.objects.filter(user=user).delete() webauthn_models.WebAuthnDevice.objects.filter(user=user).delete()