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/registration | |
parent | 6f02427039f0a80484f99ebd4595e2ecdfc907bb (diff) | |
download | patchwork-482ba5ac5e2fb71a8ae26ae9d5c5c72c33c35b23.tar patchwork-482ba5ac5e2fb71a8ae26ae9d5c5c72c33c35b23.tar.gz |
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/registration')
-rw-r--r-- | templates/registration/login.html | 1 | ||||
-rw-r--r-- | templates/registration/registration_form.html | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/templates/registration/login.html b/templates/registration/login.html index eef56a4..2dfc2a7 100644 --- a/templates/registration/login.html +++ b/templates/registration/login.html @@ -6,6 +6,7 @@ {% block body %} <form method="post"> +{% csrf_token %} <table class="form loginform"> <tr> <th colspan="2" class="headerrow">login</th> diff --git a/templates/registration/registration_form.html b/templates/registration/registration_form.html index 8938e40..e2b17c1 100644 --- a/templates/registration/registration_form.html +++ b/templates/registration/registration_form.html @@ -20,6 +20,7 @@ <li>update the state of your own patches</li> </ul> <form method="post"> +{% csrf_token %} <table class="form registerform"> <tr> <th colspan="2" class="headerrow">register</th> |