aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/new_security/password_reset.html
blob: e21f075c00e9b404caff6f37ee40dff769a576c6 (about) (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{% extends "base.html" %}
{% block title %}Register{% endblock %}
{% block content %}

    {{ header("Password Reset", "Create a new password.") }}


    <div class="container">
        <div class="page-header">
            <h1>Password reset</h1>
        </div>

        <div class="security_box">


            <h4>Enter your new password</h4>


            {% if errors %}
                <div class="alert alert-error">
                    <strong>Please note:</strong>
                    <ul>
                        {% for error in errors %}
                            <li>{{error}}</li>
                        {% endfor %}
                    </ul>
                </div>
            {% endif %}

            <form class="form-horizontal" action="/n/password_reset_step2" data-validate="parsley"
                  method="POST" name="login_user_form">

                <fieldset>

                    <input class="hidden" name="user_encode" value="{{ user_encode }}">


                    <div class="control-group">
                        <label class="control-label" for="password">Password</label>
                        <div class="controls">
                            <input id="password" name="password" type="password" value=""
                                   data-trigger="change" data-required="true" data-minlength="6">
                        </div>
                    </div>

                    <div class="control-group" style="display: none" id="password_alert">
                        <div class="controls"">
                            <span id="password_strength" class="alert"></span>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label" for="password_confirm">Confirm Password</label>
                        <div class="controls">
                            <input id="password" name="password_confirm" type="password" value=""
                                   data-trigger="change" data-required="true" data-equalto="#password">
                        </div>
                    </div>

                    <div class="control-group">
                        <div class="controls"">
                            <input class="btn btn-primary" id="submit" name="submit" type="submit" value="Reset password">
                        </div>
                    </div>

                </fieldset>

            </form>
        </div>
    </div>

{% endblock %}

{% block js %}

    <script language="javascript" type="text/javascript" src="{{ url_for('js', filename='zxcvbn/zxcvbn.js') }}"></script>
    <script type="text/javascript" src="/static/new/javascript/password_strength.js"></script>
{% endblock %}