Skip to content

Commit

Permalink
chore(webauthn): Fixed serializer redefinitions
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilPug committed May 5, 2024
1 parent e82f60b commit b5e82f7
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 b5e82f7

Please sign in to comment.