fix: use the right post data
This commit is contained in:
@ -14,7 +14,7 @@ class ChangePasswordView(APIView):
|
||||
authentication_classes = (SessionAuthentication,)
|
||||
|
||||
def post(self, request: HttpRequest):
|
||||
data = request.POST
|
||||
data = request.data
|
||||
|
||||
serializer = ChangePasswordSerializer(data=data)
|
||||
if serializer.is_valid(raise_exception=True):
|
||||
|
Reference in New Issue
Block a user