stages/authenticator_static: fix error when disable static tokens

This commit is contained in:
Jens Langhammer 2021-03-08 10:19:18 +01:00
parent a59d78a7c7
commit 3f0e4bb654
1 changed files with 2 additions and 1 deletions

View File

@ -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()