client
Last change
on this file since 2e4e1fb was
1ba734f,
checked in by Alex Dehnert <adehnert@…>, 15 years ago
|
CSRFize login screen
|
-
Property mode set to
100644
|
File size:
620 bytes
|
Rev | Line | |
---|
[dbc9bf9] | 1 | {% extends "base.html" %} |
---|
| 2 | |
---|
[1732748] | 3 | {% block title %}Log in to Remit{% endblock %} |
---|
[dbc9bf9] | 4 | |
---|
| 5 | {% block content %} |
---|
| 6 | |
---|
[1732748] | 7 | <h2>Log in to Remit</h2> |
---|
[dbc9bf9] | 8 | |
---|
| 9 | {% if form.errors %} |
---|
| 10 | <p>Your username and password didn't match. Please try again.</p> |
---|
| 11 | {% endif %} |
---|
| 12 | |
---|
| 13 | <form method="post" action="{% url django.contrib.auth.views.login %}"> |
---|
[1ba734f] | 14 | {% csrf_token %} |
---|
[dbc9bf9] | 15 | <table> |
---|
| 16 | <tr> |
---|
| 17 | <td>{{ form.username.label_tag }}</td> |
---|
| 18 | <td>{{ form.username }}</td> |
---|
| 19 | </tr> |
---|
| 20 | <tr> |
---|
| 21 | <td>{{ form.password.label_tag }}</td> |
---|
| 22 | <td>{{ form.password }}</td> |
---|
| 23 | </tr> |
---|
| 24 | </table> |
---|
| 25 | |
---|
| 26 | <input type="submit" value="login" /> |
---|
| 27 | <input type="hidden" name="next" value="{{ next }}" /> |
---|
| 28 | </form> |
---|
| 29 | |
---|
| 30 | {% endblock %} |
---|
Note: See
TracBrowser
for help on using the repository browser.