瀏覽代碼

Merge pull request #239 from yoer/master

[doc] Append the 'csrf_token' token to Calculator app example
Romain Rigaux 10 年之前
父節點
當前提交
da8f17b
共有 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>