mirror of
https://github.com/pinry/pinry.git
synced 2025-11-16 18:05:51 +01:00
Fix CSRF login and register bug
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
<div id="form" class="span6 offset3">
|
||||
<h1>Login</h1>
|
||||
<form action="{% url core:login %}" method="post" class="form-horizontal">
|
||||
{% csrf_token %}
|
||||
{% for field in form %}
|
||||
{% bootstrap_field field %}
|
||||
{% endfor %}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<div id="form" class="span6 offset3">
|
||||
<h1>Register</h1>
|
||||
<form action="{% url core:register %}" method="post" class="form-horizontal">
|
||||
{% csrf_token %}
|
||||
{% for field in form %}
|
||||
{% bootstrap_field field %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user