diff gpp/templates/bio/avatar.html @ 194:6a5549c2efb5

Implement #62, add support for CSRF protection.
author Brian Neal <bgneal@gmail.com>
date Sat, 03 Apr 2010 20:00:56 +0000
parents 9a8801fa63d5
children daa2916f5b34
line wrap: on
line diff
--- a/gpp/templates/bio/avatar.html	Sat Apr 03 02:15:04 2010 +0000
+++ b/gpp/templates/bio/avatar.html	Sat Apr 03 20:00:56 2010 +0000
@@ -15,7 +15,7 @@
    this it will be scaled down to 100 x 100 pixels. For best results, please ensure your
    image is square.
    </p>
-   <form enctype="multipart/form-data" method="POST" action=".">
+   <form enctype="multipart/form-data" method="POST" action=".">{% csrf_token %}
       {{ form.as_p }}
       <input type="submit" value="Update Avatar" />
       &nbsp;<a href="{% url bio-me %}">Cancel</a>