π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
chore: add rate limiting in magic generate endpoint (#5322)
Nikhil520938ab5c59
diff --git a/apiserver/plane/authentication/views/app/magic.py b/apiserver/plane/authentication/views/app/magic.pyindex 12f8a0c0b9..980eb4e7cc 100644--- a/apiserver/plane/authentication/views/app/magic.py+++ b/apiserver/plane/authentication/views/app/magic.py@@ -29,6 +29,7 @@ from plane.authentication.adapter.error import (AuthenticationException,AUTHENTICATION_ERROR_CODES,)+from plane.authentication.rate_limit import AuthenticationThrottleclass MagicGenerateEndpoint(APIView):@@ -37,6 +38,10 @@ class MagicGenerateEndpoint(APIView):AllowAny,]+ throttle_classes = [+ AuthenticationThrottle,+ ]+def post(self, request):# Check if instance is configuredinstance = Instance.objects.first()