Skip to content

Commit aa3de56

Browse files
authored
Merge pull request #15 from ojay37/CSRF
Added CSRF token to contact form.
2 parents 38bfb61 + cb61660 commit aa3de56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flask_wtforms_tutorial/templates/contact.jinja2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<div class="formwrapper">
99
<h2 class="title">Contact</h2>
1010
<form method="POST" action="/">
11+
{{ form.csrf_token }}
1112
<div class="form-field">{{ form.name.label }} {{ form.name(size=20) }}
1213
{% if form.name.errors %}
1314
<ul class="errors">

0 commit comments

Comments
 (0)