Add field errors in login form

This commit is contained in:
Yohan Boniface 2016-09-09 21:09:24 +02:00
parent a0bc6e7e3a
commit f0e97913d5

View file

@ -14,7 +14,9 @@
<form id='login_form' action="{% url 'login' %}" method="POST">
{% csrf_token %}
{{ form.username.errors }}
<input type="text" name="username" placeholder="{% trans 'Username' %}" autofocus />
{{ form.password.errors }}
<input type="password" name="password" placeholder="{% trans 'Password' %}" />
<input type="submit" value="{% trans 'Login' %}" />
</form>