Source

django-twostepauth / exampleapp / demoapp / templates / registration / login.html

Full commit
{% extends "base.html" %}
{% load url from future %}

{% block content %}

{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}

<form method="post" action="{% url 'auth_login' %}">
{% csrf_token %}
<legend>Login</legend>
<label for="id_username">{{ form.username.label_tag }}</label>
{{ form.username }}
<br>
<label for="id_password">{{ form.password.label_tag }}</label>
{{ form.password }}
<br>
<div class="submit">
<input type="submit" value="login" />
<input type="hidden" name="next" value="{{ next }}" />
<br><br>
New user? <a href="{% url 'registration_register' %}">Register</a>
</div>		
</form>
{% endblock %}