blob: eb9dcd939a4c3b5f943b9e9baf60e7edd2980fd4 (
plain) (
blame)
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
|
{{define "title"}}Sign in - {{.Site}}{{end}}
{{define "main"}}
<h2>Sign in</h2>
<form method="post" action="/login">
<input type="hidden" name="csrf" value="{{.CSRF}}">
<p>
<label for="name">Account</label>
<input id="name" name="name" autocomplete="username" autocapitalize="none" required>
</p>
<p>
<label for="password">Password</label>
<input id="password" name="password" type="password" autocomplete="current-password" required>
</p>
<p><button type="submit">Sign in</button></p>
</form>
{{if .MailOff}}
<p class="dim">
Mail is turned off on this instance, so there is no password reset. An admin
can issue you a one time link instead.
</p>
{{else}}
<p><a href="/reset">Forgotten your password?</a></p>
{{end}}
{{with .Data.Providers}}
<h3>Or sign in through</h3>
<ul>
{{range .}}
<li><a href="/oidc/{{.Key}}">{{.Label}}</a></li>
{{end}}
</ul>
{{end}}
{{end}}
|