Skip to content

Commit

Permalink
chore(webauthn): replaced Serializer with Webauthn Serializers
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilPug authored and tomwojcik committed Jun 7, 2024
1 parent 8d4f1cb commit 07e875e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions djoser/webauthn/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from rest_framework import status
from rest_framework.permissions import AllowAny
from rest_framework.response import Response
from rest_framework.serializers import Serializer
from rest_framework.settings import api_settings
from rest_framework.views import APIView
from webauthn import (
Expand Down Expand Up @@ -32,7 +31,7 @@

class SignupRequestView(APIView):
permission_classes = (AllowAny,)
serializer_class = Serializer
serializer_class = WebauthnSignupSerializer

def post(self, request):
serializer = WebauthnSignupSerializer(data=request.data)
Expand Down Expand Up @@ -97,7 +96,7 @@ def post(self, request, ukey):

class LoginRequestView(APIView):
permission_classes = (AllowAny,)
serializer_class = Serializer
serializer_class = WebauthnLoginSerializer

def post(self, request):
serializer = WebauthnLoginSerializer(data=request.data)
Expand Down

0 comments on commit 07e875e

Please sign in to comment.