~fnux/meta.sr.ht

ref: 1523a34288ef75828716b82551f545241e9eba7c meta.sr.ht/metasrht/templates/forgot.html -rw-r--r-- 1.2 KiB
1523a342Drew DeVault Add user profile information to admin page 8 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
{% 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 is_external_auth() %}
    Password reset is disabled because {{cfg("sr.ht", "site-name")}}
    authentication is managed by a different service.
    Please contact the system administrator for further information
    on how to reset your password.
    {% elif done %}
    <p>
      An email has been sent to your account with a link to reset your password.
    </p>
    {% else %}
    <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>
    {% endif %}
  </div>
</div>
{% endblock %}