瀏覽代碼

Fix CSRF login and register bug

tags/v0.5.1
Isaac Bythewood 12 年之前
父節點
當前提交
94d40b7054
共有 2 個檔案被更改,包括 2 行新增0 行删除
  1. +1
    -0
      pinry/core/templates/core/login.html
  2. +1
    -0
      pinry/core/templates/core/register.html

+ 1
- 0
pinry/core/templates/core/login.html 查看文件

@@ -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 %}


+ 1
- 0
pinry/core/templates/core/register.html 查看文件

@@ -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 %}


Loading…
取消
儲存