diff options
author | John 'Warthog9' Hawley <warthog9@kernel.org> | 2010-06-24 09:38:06 -0700 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2010-08-10 11:57:56 +0800 |
commit | 482ba5ac5e2fb71a8ae26ae9d5c5c72c33c35b23 (patch) | |
tree | 30af42f92bc0143daf7fb17fde0d6e8043ace1ea /templates/patchwork/user-link.html | |
parent | 6f02427039f0a80484f99ebd4595e2ecdfc907bb (diff) | |
download | patchwork-482ba5ac5e2fb71a8ae26ae9d5c5c72c33c35b23.tar.bz2 patchwork-482ba5ac5e2fb71a8ae26ae9d5c5c72c33c35b23.tar.xz |
templates: Add CSRF (cross-site request forgery) values to form posts
This is a fairly simple patch, basically it does what the error message
told me to do:
"add In the template, there is a {% csrf_token %} template tag inside each POST form that targets an internal URL."
Signed-off-by: John 'Warthog9' Hawley <warthog9@kernel.org>
Diffstat (limited to 'templates/patchwork/user-link.html')
-rw-r--r-- | templates/patchwork/user-link.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/patchwork/user-link.html b/templates/patchwork/user-link.html index 2ed193e..10c8ec2 100644 --- a/templates/patchwork/user-link.html +++ b/templates/patchwork/user-link.html @@ -22,6 +22,7 @@ you.</p> {% endif %} <form action="{% url patchwork.views.user.link %}" method="post"> + {% csrf_token %} {{linkform.email.errors}} Link an email address: {{ linkform.email }} </form> |