Seems the field is called csrf_token in flask.wtf now.

eskilolsen 2012-03-24 14:09:46 -07:00
parent 7d48486bb6
commit b817274687

@ -340,7 +340,7 @@ Now we won't have to redefine our html structure anymore, and any modification d
{% block content %} {% block content %}
{% from "forms/macros.html" import render_field %} {% from "forms/macros.html" import render_field %}
<form method="POST" action="." class="form"> <form method="POST" action="." class="form">
{{ form.csrf }} {{ form.csrf_token }}
{{ render_field(form.name, class="input text") }} {{ render_field(form.name, class="input text") }}
{{ render_field(form.email, class="input text") }} {{ render_field(form.email, class="input text") }}
{{ render_field(form.password, class="input text") }} {{ render_field(form.password, class="input text") }}
@ -361,7 +361,7 @@ and here is the `/app/templates/users/login.html` template:
{% block content %} {% block content %}
{% from "forms/macros.html" import render_field %} {% from "forms/macros.html" import render_field %}
<form method="POST" action="." class="form"> <form method="POST" action="." class="form">
{{ form.csrf }} {{ form.csrf_token }}
{{ render_field(form.email, class="input text") }} {{ render_field(form.email, class="input text") }}
{{ render_field(form.password, class="input text") }} {{ render_field(form.password, class="input text") }}
<input type="submit" value="Login" class="button green"> <input type="submit" value="Login" class="button green">