Merge pull request #288 from einSelbst/use-csrf-helper

Using flask-wtf helper for csrf token field
master
Steven Loria 7 years ago committed by GitHub
commit 9d7e95ab40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/public/register.html

@ -5,7 +5,7 @@
<h1>Register</h1> <h1>Register</h1>
<br/> <br/>
<form id="registerForm" class="form form-register" method="POST" action="" role="form"> <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"> <div class="form-group">
{{form.username.label}} {{form.username.label}}
{{form.username(placeholder="Username", class_="form-control")}} {{form.username(placeholder="Username", class_="form-control")}}

Loading…
Cancel
Save