diff --git a/hc/front/views.py b/hc/front/views.py index 7aa3ea95..70b9f29d 100644 --- a/hc/front/views.py +++ b/hc/front/views.py @@ -701,6 +701,7 @@ def verify_email(request, code, token): return render(request, "bad_link.html") +@csrf_exempt def unsubscribe_email(request, code, token): channel = get_object_or_404(Channel, code=code) if channel.make_token() != token: diff --git a/templates/accounts/unsubscribe_submit.html b/templates/accounts/unsubscribe_submit.html index 00e96de5..5082c534 100644 --- a/templates/accounts/unsubscribe_submit.html +++ b/templates/accounts/unsubscribe_submit.html @@ -6,7 +6,6 @@

Please press the button below to unsubscribe:


- {% csrf_token %}