From b5e82f7462809b58b602b1b970d602b1dbd5a108 Mon Sep 17 00:00:00 2001 From: EvilPug <3608690@gmail.com> Date: Sun, 5 May 2024 23:03:27 +0300 Subject: [PATCH] chore(webauthn): Fixed serializer redefinitions --- djoser/webauthn/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/djoser/webauthn/views.py b/djoser/webauthn/views.py index ab7b725d..c57a3399 100644 --- a/djoser/webauthn/views.py +++ b/djoser/webauthn/views.py @@ -34,7 +34,7 @@ class SignupRequestView(APIView): serializer_class = WebauthnSignupSerializer def post(self, request): - serializer = WebauthnSignupSerializer(data=request.data) + serializer = self.serializer_class(data=request.data) serializer.is_valid(raise_exception=True) co = serializer.save() @@ -99,7 +99,7 @@ class LoginRequestView(APIView): serializer_class = WebauthnLoginSerializer def post(self, request): - serializer = WebauthnLoginSerializer(data=request.data) + serializer = self.serializer_class(data=request.data) serializer.is_valid(raise_exception=True) co = CredentialOptions.objects.get( username=serializer.validated_data["username"]