Use django builtin auth views, and add a password reset link

This commit is contained in:
Trever Fischer
2012-03-04 22:04:04 -05:00
parent d7dccf9904
commit 75ac4ebbdd
2 changed files with 3 additions and 1 deletions

View File

@@ -51,7 +51,8 @@
{% else %}
<h2 class="title">Login</h2>
<p>Welcome! Do you have an invite? <a href="{% url profiles.views.claimInvite %}">Claim it!</a><p>
<form method="POST" action="{%url profiles.views.login %}">
<p><a href="{% url django.contrib.auth.views.password_reset %}">Forgot your password?</a>
<form method="POST" action="{%url django.contrib.auth.views.login %}">
{%csrf_token%}
{{login_form.as_p}}
<input type="submit" value="Login"/>