From b968adffc102afa460b6a7deee72706ead1d39cc Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 25 Feb 2021 20:59:43 +0100 Subject: [PATCH] stages/authenticator_totp: fix error when disabling device --- authentik/stages/authenticator_totp/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/authentik/stages/authenticator_totp/views.py b/authentik/stages/authenticator_totp/views.py index 338350d71..e94624aec 100644 --- a/authentik/stages/authenticator_totp/views.py +++ b/authentik/stages/authenticator_totp/views.py @@ -29,7 +29,8 @@ class UserSettingsView(LoginRequiredMixin, TemplateView): class DisableView(LoginRequiredMixin, View): """Disable TOTP 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""" totp = TOTPDevice.objects.filter(user=request.user, confirmed=True) totp.delete()