fix: use the right post data

This commit is contained in:
2023-11-13 13:22:10 +01:00
parent b9728dcb06
commit 9aa724e19e
3 changed files with 12 additions and 11 deletions

View File

@ -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):