euscanwww: Reset password

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino 2012-06-14 10:21:01 +02:00
parent 34d3bd714d
commit 11c8422c9b
2 changed files with 12 additions and 5 deletions

View File

@ -50,7 +50,7 @@
</ul>
<li><a href="{% url "django.contrib.auth.views.logout" %}">Logout</a></li>
{% else %}
<li><a href="{% url "django.contrib.auth.views.login" %}?next={% url "accounts_index" %}">Login</a></li>
<li><a href="{% url "django.contrib.auth.views.login" %}?next={% url "accounts_index" %}">Login</a></li>
<li><a href="{% url "registration.views.register" %}">Register</a></li>
{% endif %}

View File

@ -12,17 +12,24 @@
{% csrf_token %}
<table>
<tr>
<td>{{ form.username.label_tag }}</td>
<th>{{ form.username.label_tag }}</th>
<td>{{ form.username }}</td>
</tr>
<tr>
<td>{{ form.password.label_tag }}</td>
<th>{{ form.password.label_tag }}</th>
<td>{{ form.password }}</td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" value="Login" />
</td>
</tr>
</table>
<input type="submit" value="login" />
<input type="hidden" name="next" value="/" />
</form>
<a href="{% url "registration.views.register" %}">Register</a>
<a href="{% url "django.contrib.auth.views.password_reset" %}">Forgot password</a>
{% endblock %}