Skip to content

Commit

Permalink
chore(webauthn): Fixed serializer reassignments
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilPug authored and tomwojcik committed Jun 7, 2024
1 parent 07e875e commit 327a7b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions djoser/webauthn/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit 327a7b5

Please sign in to comment.