summaryrefslogtreecommitdiff
path: root/templates/changepw/reset_password.html
blob: 739594d93bbf12775cc911bae133ebb94324915f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{% extends "base.html" %}
{% block js %}
{% endblock %}
{% block title %}Password reset{% endblock %}
{% block content %}
<h2>Password reset</h2>
{% if not return_value %}
    <p>Here is your new password:</p>
    <table>
        <tr>
            <th>Username:</th><td>{{ username }}</td>
        </tr>
        {% if new_password %}
            <tr>
                <th>Password:</th><td>{{ new_password }}</td>
            </tr>
        {% else %}
            <tr>
                <th>Password:</th>
                <td>
                    <form action="{% url resetpw %}" method="post">
                    {% csrf_token %}
                    <input type="submit" value="Generate" />
                    </form>
                </td>
            </tr>
        {% endif %}
    </table>
{% else %}
    <p>Something went wrong. Please contact an administrator.</p>
    <p>Return code: {{ return_value }}</p>
{% endif %}

<p>
    <a href="{% url index %}">Back</a><br />
    <a href="{% url logout %}">Log out</a>
</p>
{% endblock %}