From 3f0e4bb6549a84e712af667127bb4b97d2311264 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 8 Mar 2021 10:19:18 +0100 Subject: [PATCH] stages/authenticator_static: fix error when disable static tokens --- authentik/stages/authenticator_static/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/authentik/stages/authenticator_static/views.py b/authentik/stages/authenticator_static/views.py index 2d4fb048b..13e5517bb 100644 --- a/authentik/stages/authenticator_static/views.py +++ b/authentik/stages/authenticator_static/views.py @@ -34,7 +34,8 @@ class UserSettingsView(LoginRequiredMixin, TemplateView): class DisableView(LoginRequiredMixin, View): """Disable Static Tokens for user""" - def get(self, request: HttpRequest) -> HttpResponse: + # pylint: disable=unused-argument + def get(self, request: HttpRequest, **kwargs) -> HttpResponse: """Delete all the devices for user""" devices = StaticDevice.objects.filter(user=request.user, confirmed=True) devices.delete()