aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/payments/views.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--alphabetlearning/payments/views.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/alphabetlearning/payments/views.py b/alphabetlearning/payments/views.py
index 5a5d0df..6eaae1a 100644
--- a/alphabetlearning/payments/views.py
+++ b/alphabetlearning/payments/views.py
@@ -14,7 +14,6 @@ from django.views import View
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import DeleteView
from django.views.generic import TemplateView
-from django_ratelimit.decorators import ratelimit
from alphabetlearning.payments.models import EmailSignup
from alphabetlearning.payments.models import EmailVerification
@@ -57,11 +56,8 @@ class SuccessEmailSignupView(TemplateView):
return context
-@ratelimit(key="ip", rate="2/m", block=True)
def email_signup_verification(request):
if request.method == "POST":
- if getattr(request, "limited", False):
- return render(request, "payments/rate_limited.html", status=429)
form = EmailVerificationForm(request.POST)
if form.is_valid():
# Create pending verification