From fab154a652549a580eb031a96b8250015067614b Mon Sep 17 00:00:00 2001 From: = Date: Sat, 11 Jan 2025 21:08:10 -0500 Subject: [PATCH] typo --- main/api_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):