~sircmpwn/meta.sr.ht

ref: 72548bd7545f78670878667674cc7645835a17bd meta.sr.ht/metasrht/templates/login.html -rw-r--r-- 1.6 KiB
72548bd7Drew DeVault API: Updates per core-go auth changes 1 year, 1 month 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{% extends "layout.html" %}
{% block title %}
<title>Log in to {{cfg("sr.ht", "site-name")}}</title>
{% endblock %}
{% block content %}
<div class="row">
  <div class="col-md-8 offset-md-2">
    <h3>
      Log in to {{cfg("sr.ht", "site-name")}}
      <small>
        or <a href="/register">register</a>
      </small>
    </h3>
  </div>
</div>
<div class="row">
  <div class="col-md-6 offset-md-3">
    <form method="POST" action="/login">
      {{csrf_token()}}
      <div class="form-group">
        <label for="username">Username</label>
        <input
           type="text"
           name="username"
           id="username"
           class="form-control {{valid.cls("username")}}"
           value="{{username or ""}}"
           required
           autocomplete="username"
           {% if not username %} autofocus{% endif %} />
        {{valid.summary("username")}}
      </div>
      <div class="form-group">
        <label for="password">Password</label>
        <input
           type="password"
           name="password"
           id="password"
           class="form-control {{valid.cls("password")}}"
           required
           autocomplete="current-password"
           {% if username %} autofocus{% endif %} />
        {{valid.summary("password")}}
      </div>
      <input type="hidden" name="return_to" value="{{return_to or ""}}" />
      {{valid.summary()}}
      <button class="btn btn-primary pull-right" type="submit">
        Log in {{icon("caret-right")}}
      </button>
      <p>
        <a href="/forgot">Forgot your password?</a>
      </p>
    </form>
  </div>
</div>
{% endblock %}