From 8492b8c59bfc0375377f1fea1f886031bfb10ffb Mon Sep 17 00:00:00 2001
From: Alexandre Iooss
Date: Wed, 19 Sep 2018 22:56:54 +0200
Subject: [PATCH] Remove "next" in login template
The next field isn't used at all so this removes the associated dead code.
Also it removes the double error messages when an error occures in the form.
---
templates/registration/login.html | 32 ++++++++-----------------------
1 file changed, 8 insertions(+), 24 deletions(-)
diff --git a/templates/registration/login.html b/templates/registration/login.html
index e33fc462..e169c321 100644
--- a/templates/registration/login.html
+++ b/templates/registration/login.html
@@ -24,33 +24,17 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endcomment %}
{% load bootstrap3 %}
-
{% load i18n %}
{% block title %}{% trans "Log in" %}{% endblock %}
{% block content %}
-
-{% if form.errors %}
-{% trans "Your username and password didn't match. Please try again." %}
-{% endif %}
-
-{% if next %}
- {% if user.is_authenticated %}
- {% trans "Your account doesn't have access to this page. To proceed,
- please log in with an account that has access." %}
- {% else %}
- {% trans "Please log in to see this page." %}
- {% endif %}
-{% endif %}
-
-
- {% trans "Forgotten password?" %}
-
+
+ {% trans "Forgotten password?" %}
{% endblock %}
-