Django 1.4 requires the csrf token for posts.
[htsworkflow.git] / htsworkflow / frontend / templates / registration / login.html
index cd28d5997ee32092f85fc4b8cdecac82f08bcde0..2bf2456699edde4f050cae8a4793015be900e55d 100644 (file)
@@ -1,10 +1,11 @@
-{% extends "app_base.html" %}
+{% extends "base_site.html" %}
 {% load i18n %}
 
 {% block additional_css %}{% load adminmedia %}{{ block.super }}
 <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/base.css" />
 <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/login.css" />
 {% endblock %}
+
 {% block title %}Login{% endblock %}
 {% block bodyclass %}login{% endblock %}
 
 <p class="errornote">{{ error_message }}</p>
 {% endif %}
 <div id="container">
-  <div id="header">
     <h1>Login</h1>
-  </div>
 <form action="{{ app_path }}" method="post" id="login-form">
+  {% csrf_token %}
   <div class="form-row">
     <label for="id_username">{% trans 'Username:' %}</label> <input type="text" name="username" id="id_username" />
   </div>