This commit is contained in:
= 2025-01-11 21:08:10 -05:00
parent c589910b11
commit fab154a652

View File

@ -32,7 +32,7 @@ class UserLoginView(APIView):
if user is not None: if user is not None:
login(request, user) login(request, user)
return Response({"message": "Login successful"}, status=status.HTTP_200_OK) 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): class UserLogoutView(APIView):
def post(self, request): def post(self, request):