added CSRF
This commit is contained in:
parent
a06e8db2ff
commit
5c7d92f4f3
10 changed files with 42 additions and 6 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
{{define "content"}}
|
||||
<form action="/threads" method="POST">
|
||||
{{.CSRF}}
|
||||
<div class="form-group">
|
||||
<label>Title</label>
|
||||
<input name="title" type="text" class="form-control" placeholder="Give your thread a great title">
|
||||
|
|
Reference in a new issue