diff --git a/main/api_views.py b/main/api_views.py index d9205b2..3c1c949 100644 --- a/main/api_views.py +++ b/main/api_views.py @@ -32,7 +32,7 @@ class UserLoginView(APIView): if user is not None: login(request, user) return Response({"message": "Login successful"}, status=status.HTTP_200_OK) - return Response({error}: "Invalid credentials", status=status.HTTP_401_UNAUTHORIZED) + return Response({error: "Invalid credentials"}, status=status.HTTP_401_UNAUTHORIZED) class UserLogoutView(APIView): def post(self, request):