Browse Source

append the 'csrf_token' token to calculator app

append the 'csrf_token' token to calculator app simple
Yoer 10 years ago
parent
commit
44ced10662
1 changed files with 1 additions and 0 deletions
  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>