diff website/issues/html/user.index.html @ 5291:f63a2b15e628

Adding @csrf tokens to all forms using post method.
author John Rouillard <rouilj@ieee.org>
date Sun, 24 Sep 2017 21:17:51 -0400
parents 20e0e5ce217f
children 447a7647f237
line wrap: on
line diff
--- a/website/issues/html/user.index.html	Sun Sep 24 21:14:12 2017 -0400
+++ b/website/issues/html/user.index.html	Sun Sep 24 21:17:51 2017 -0400
@@ -68,6 +68,8 @@
       <input type="hidden" name="@template" value="index">
       <input type="hidden" name="@action" value="retire">
       <input type="submit" value="retire" i18n:attributes="value">
+      <input name="@csrf" type="hidden"
+	     tal:attributes="value python:utils.anti_csrf_nonce()">
      </form>
  </td>
 </tr>

Roundup Issue Tracker: http://roundup-tracker.org/