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> </ul>
<li><a href="{% url "django.contrib.auth.views.logout" %}">Logout</a></li> <li><a href="{% url "django.contrib.auth.views.logout" %}">Logout</a></li>
{% else %} {% 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> <li><a href="{% url "registration.views.register" %}">Register</a></li>
{% endif %} {% endif %}

View File

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