diff --git a/rest_framework/templates/rest_framework/login_base.html b/rest_framework/templates/rest_framework/login_base.html index 43860e53e..8ab682ac8 100644 --- a/rest_framework/templates/rest_framework/login_base.html +++ b/rest_framework/templates/rest_framework/login_base.html @@ -17,21 +17,44 @@
-
+ {% csrf_token %} -
+
- + + {% if form.username.errors %} +

+ {{ form.username.errors|striptags }} +

+ {% endif %}
-
-
+
+
- + + {% if form.password.errors %} +

+ {{ form.password.errors|striptags }} +

+ {% endif %}
+ {% if form.non_field_errors %} + {% for error in form.non_field_errors %} +
{{ error }}
+ {% endfor %} + {% endif %}