2023-07-11 04:38:19 +00:00
|
|
|
{{ $cipher := ((.Context).Value "params").cipher }}
|
|
|
|
{{ $valid := ((.Context).Value "crypto").IsValid $cipher }}
|
|
|
|
|
|
|
|
<html lang="en-US">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<title>Felt — Admin Registration</title>
|
|
|
|
<meta name="viewport" content="width=device-width" />
|
2023-07-12 05:57:06 +00:00
|
|
|
<link rel="shortcut icon" href="/table/favicon.png"/>
|
2023-07-22 05:49:14 +00:00
|
|
|
<link href="/table/style.css?v=0.2.2" rel="stylesheet" />
|
2023-07-11 04:38:19 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<main id="registration">
|
|
|
|
<h1>Felt Admin Registration</h1>
|
|
|
|
{{ if $valid }}
|
|
|
|
<form action="/register/{{ $cipher }}" method="post">
|
2023-07-11 06:34:13 +00:00
|
|
|
<label>username <input id="username" name="username" required/></label>
|
|
|
|
<label>password <input id="password" name="password" type="password" required/></label>
|
2023-07-11 04:38:19 +00:00
|
|
|
<button type="submit">Register</button>
|
|
|
|
</form>
|
|
|
|
{{ else }}
|
2023-07-11 06:34:13 +00:00
|
|
|
<span class="error">The registration token you provided is invalid;<br/> obtain a new one.</span>
|
2023-07-11 04:38:19 +00:00
|
|
|
{{end}}
|
|
|
|
</main>
|
|
|
|
</body>
|
2023-08-03 00:15:45 +00:00
|
|
|
<script src="/table/util.js?v=0.2.5" type="text/javascript"></script>
|
2023-07-11 04:38:19 +00:00
|
|
|
</html>
|