~cytrogen/srht-deploy

srht-deploy/meta-custom/templates/forgot.html -rw-r--r-- 1.1 KiB
6b7b1351 — Cytrogen 修复 README 里的 Markdown 格式错误 9 days 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>重置密码 - {{cfg("sr.ht", "site-name")}} meta</title>
{% endblock %}
{% block content %}
<div class="row">
  <div class="col-md-8 offset-md-2">
    <h3>
      重置密码
    </h3>
    {% if done %}
    <p>
      密码重置链接已发送到你的邮箱。
    </p>
    {% elif allow_password_reset() %}
    <form method="POST" action="/forgot">
      {{csrf_token()}}
      <div class="form-group">
        <label for="username">邮箱地址</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">
        继续 {{icon('caret-right')}}
      </button>
    </form>
    {% else %}
    <p>无法重置密码,因为认证由其他服务管理。
    请联系系统管理员了解如何重置密码。</p>
    {% endif %}
  </div>
</div>
{% endblock %}