forked from
willdot.net/cocoon
A fork of the Cocoon PDS but being made more distributed.
1<!doctype html>
2<html lang="en">
3 <head>
4 <meta charset="utf-8" />
5 <meta name="viewport" content="width=device-width, initial-scale=1" />
6 <meta name="color-scheme" content="light dark" />
7 <link rel="stylesheet" href="/static/pico.css" />
8 <link rel="stylesheet" href="/static/style.css" />
9 <title>PDS Authentication</title>
10 </head>
11 <body class="centered-body">
12 <main class="container base-container box-shadow-container login-container">
13 <h2>Sign into your account</h2>
14 <p>Enter your handle and password below.</p>
15 {{ if gt (len .Accounts) 0 }}
16 <p>You currently have {{ len .Accounts }} signed-in account(s).</p>
17 {{ end }}
18 {{ if .flashes.errors }}
19 <div class="alert alert-danger margin-bottom-xs">
20 <p>{{ index .flashes.errors 0 }}</p>
21 </div>
22 {{ end }}
23 <form action="/account/signin" method="post">
24 <input name="username" id="username" placeholder="Handle" />
25 <br />
26 <input
27 name="password"
28 id="password"
29 type="password"
30 placeholder="Password"
31 />
32 {{ if .flashes.tokenrequired }}
33 <br />
34 <input name="token" id="token" placeholder="Enter your 2FA token" />
35 {{ end }}
36 <input name="query_params" type="hidden" value="{{ .QueryParams }}" />
37 <button class="primary" type="submit" value="Login">Login</button>
38 </form>
39 </main>
40 </body>
41</html>