From 8173b3ed30adcfa30591a6f44cad485a1fdbd583 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Thu, 6 Jul 2023 19:32:20 +0200 Subject: [PATCH] Fixed indentation --- modoboa/core/api/v1/viewsets.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modoboa/core/api/v1/viewsets.py b/modoboa/core/api/v1/viewsets.py index 96b51f46c..fc99450d0 100644 --- a/modoboa/core/api/v1/viewsets.py +++ b/modoboa/core/api/v1/viewsets.py @@ -62,8 +62,8 @@ class AccountViewSet(GetThrottleViewsetMixin, viewsets.ViewSet): context={ "user": request.user, "remote_addr": request.META["REMOTE_ADDR"] - } - ) + } + ) serializer.is_valid(raise_exception=True) if not request.user.tfa_enabled: # We include it as "password" to display the error @@ -84,8 +84,8 @@ class AccountViewSet(GetThrottleViewsetMixin, viewsets.ViewSet): context={ "user": request.user, "remote_addr": request.META["REMOTE_ADDR"] - } - ) + } + ) serializer.is_valid(raise_exception=True) device = request.user.staticdevice_set.first() if device is None: