Microservice to bring 2FA to self hosted PDSes
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, minimum-scale=1, viewport-fit=cover"/>
6 <meta name="referrer" content="origin-when-cross-origin"/>
7 <title>Admin Login - {{pds_hostname}}</title>
8 <link rel="stylesheet" href="/admin/static/css/admin.css">
9 <style>
10 body {
11 min-height: 100vh;
12 display: flex;
13 align-items: center;
14 justify-content: center;
15 }
16 </style>
17</head>
18<body>
19 <div class="login-card">
20 <div class="login-title">{{pds_hostname}}</div>
21 <div class="login-subtitle">Admin Portal</div>
22
23 {{#if error}}
24 <div class="error-msg">{{error}}</div>
25 {{/if}}
26
27 <form method="POST" action="/admin/login">
28 <div class="form-group">
29 <label for="handle">Handle</label>
30 <input type="text" id="handle" name="handle" placeholder="you.bsky.social" required autofocus />
31 </div>
32 <button type="submit" class="btn btn-primary">Login with OAuth</button>
33 </form>
34 </div>
35</body>
36</html>