浏览代码

append the 'csrf_token' token to calculator app

append the 'csrf_token' token to calculator app simple
Yoer 10 年之前
父节点
当前提交
44ced10662
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      docs/sdk/sdk.md

+ 1 - 0
docs/sdk/sdk.md

@@ -251,6 +251,7 @@ to include a simple form:
       <span>${a} ${op} ${b} = ${result}</span>
       % endif
       <form action=${url("calculator.views.index")} method=POST>
+        ${ csrf_token(request) | n,unicode }
         <input name="a">
         <input type="radio" name="op" value="add">+</input>
         <input type="radio" name="op" value="subtract">-</input>