blob: 52d1f13e16009e1a72ab66b8c3c738735f312726 (
plain)
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
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>THOI Admin — Login</title>
<link rel="stylesheet" href="/static/admin.css">
</head>
<body>
<div class="login">
<h1 style="margin-bottom:4px">The House of Icarus</h1>
<p style="text-align:center;font-size:13px;color:#aaa;margin-bottom:20px">Admin Portal</p>
{{if .Error}}<p style="color:var(--danger);text-align:center;margin-bottom:12px;font-size:13px">{{.Error}}</p>{{end}}
<form method="post" action="/login">
<div class="form-group">
<label>Account Name</label>
<input type="text" name="account" required autofocus autocomplete="username">
</div>
<div class="form-group">
<label>Password</label>
<input type="password" name="password" required autocomplete="current-password">
</div>
<div class="btn-row">
<button type="submit" class="btn btn-primary" style="width:100%">Login</button>
</div>
</form>
<p style="font-size:11px;color:#888;margin-top:16px;line-height:1.5;text-align:center">
Use the same credentials you use in-game. To enable admin access, set
<code style="background:var(--input-bg);padding:1px 4px;border-radius:2px">admin: true</code>
in your account YAML at
<code style="background:var(--input-bg);padding:1px 4px;border-radius:2px">data/players/accounts/<account>.yaml</code>.
</p>
</div>
</body>
</html>
|