~fnux/meta.sr.ht

ref: e929d461b76fb7b17963c864192a975562bf23b6 meta.sr.ht/metasrht/templates/forgot.html -rw-r--r-- 1.2 KiB
e929d461Timothée Floure Make password reset logic more generic 9 months ago
                                                                                
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
{% extends "layout.html" %}
{% block title %}
<title>Reset password - {{cfg("sr.ht", "site-name")}} meta</title>
{% endblock %}
{% block content %}
<div class="row">
  <div class="col-md-8">
    <h3>
      Reset password
    </h3>
    {% if allow_password_reset() %}
    <form method="POST" action="/forgot">
      {{csrf_token()}}
      <div class="form-group">
        <label for="username">Email address</label>
        <input
           type="text"
           name="email"
           id="email"
           class="form-control {{valid.cls("email")}}"
           value="{{email or ""}}" />
        {{valid.summary("email")}}
      </div>
      {{valid.summary()}}
      <button class="btn btn-primary pull-right" type="submit">
        Continue {{icon('caret-right')}}
      </button>
    </form>
    {% elif done %}
    <p>
      An email has been sent to your account with a link to reset your password.
    </p>
    {% else %}
    <p>Password reset is disabled because sr.ht authentication is managed by a
    different service. Please contact the system administrator for further
    information on how to reset your password.</p>
    {% endif %}
  </div>
</div>
{% endblock %}