blob: 9089bd39cdce7e909a5d8279ed2bea044c530a1f (
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"}}Set up - {{.Site}}{{end}}
{{define "main"}}
<h2>Set up {{.Site}}</h2>
<p>
This creates the first account and gives it the global admin flag. The setup
token was printed to the log when git-forge started, and this page is gone once
an account exists.
</p>
<form method="post" action="/setup">
<input type="hidden" name="csrf" value="{{.CSRF}}">
<p>
<label for="token">Setup token</label>
<input id="token" name="token" required>
</p>
<p>
<label for="name">Account name</label>
<input id="name" name="name" autocomplete="username" autocapitalize="none" required>
</p>
<p>
<label for="email">Email address, optional</label>
<input id="email" name="email" type="email" autocomplete="email">
</p>
<p>
<label for="password">Password</label>
<input id="password" name="password" type="password" autocomplete="new-password" required>
</p>
<p>
<label for="again">Password again</label>
<input id="again" name="again" type="password" autocomplete="new-password" required>
</p>
<p><button type="submit">Create the first admin</button></p>
</form>
{{end}}
|