Unsubscribe is CSRF exempt.

This commit is contained in:
Pēteris Caune 2019-12-09 16:14:50 +02:00
parent f9c61dad23
commit 4ee92a44ff
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2
2 changed files with 1 additions and 1 deletions

View File

@ -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:

View File

@ -6,7 +6,6 @@
<p>Please press the button below to unsubscribe:</p>
<br />
<form id="form" method="post">
{% csrf_token %}
<input
id="submit-btn"
type="submit"