Using flask-wtf helper for csrf token field

master
Silvio 7 years ago
parent 569f0398ee
commit 3b93e5f2ba
  1. 2
      {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/register.html

@ -5,7 +5,7 @@
<h1>Register</h1>
<br/>
<form id="registerForm" class="form form-register" method="POST" action="" role="form">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
{{ form.csrf_token }}
<div class="form-group">
{{form.username.label}}
{{form.username(placeholder="Username", class_="form-control")}}

Loading…
Cancel
Save