Skip to content
Snippets Groups Projects
Commit b7a79942 authored by Steven Loria's avatar Steven Loria
Browse files

Add hidden tags with CSRF field to forms

parent a1316485
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
<li><a href="{{ url_for('register') }}">Create account</a></li> <li><a href="{{ url_for('register') }}">Create account</a></li>
</ul> </ul>
<form method="POST" class="navbar-form form-inline navbar-right" action="" role="login"> <form method="POST" class="navbar-form form-inline navbar-right" action="" role="login">
{{ form.hidden_tag() }}
<div class="form-group"> <div class="form-group">
{{ form.username(placeholder="Username", class_="form-control") }} {{ form.username(placeholder="Username", class_="form-control") }}
{{ form.password(placeholder="Password", class_="form-control") }} {{ form.password(placeholder="Password", class_="form-control") }}
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
<h1>Register</h1> <h1>Register</h1>
<br/> <br/>
<form class="form form-register" method="POST" action="" role="form"> <form class="form form-register" method="POST" action="" role="form">
{{ form.hidden_tag() }}
<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")}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment