typo in api_views

This commit is contained in:
= 2025-01-11 20:53:25 -05:00
parent ecaa6559e0
commit e56203b40f

View File

@ -31,7 +31,7 @@ class UserLoginView(APIView):
user = authenticate(request, username=username, password=password)
if user is not None:
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)
class UserLogoutView(APIView):