Seems the field is called csrf_token in flask.wtf now.
parent
7d48486bb6
commit
b817274687
1 changed files with 2 additions and 2 deletions
|
|
@ -340,7 +340,7 @@ Now we won't have to redefine our html structure anymore, and any modification d
|
|||
{% block content %}
|
||||
{% from "forms/macros.html" import render_field %}
|
||||
<form method="POST" action="." class="form">
|
||||
{{ form.csrf }}
|
||||
{{ form.csrf_token }}
|
||||
{{ render_field(form.name, class="input text") }}
|
||||
{{ render_field(form.email, 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 %}
|
||||
{% from "forms/macros.html" import render_field %}
|
||||
<form method="POST" action="." class="form">
|
||||
{{ form.csrf }}
|
||||
{{ form.csrf_token }}
|
||||
{{ render_field(form.email, class="input text") }}
|
||||
{{ render_field(form.password, class="input text") }}
|
||||
<input type="submit" value="Login" class="button green">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue